-if (GNUWIN32_FOUND)
- if (NOT GNUWIN32_FIND_QUIETLY)
- message(STATUS "Found GNUWIN32: ${GNUWIN32_DIR}")
- endif (NOT GNUWIN32_FIND_QUIETLY)
-else (GNUWIN32_FOUND)
- if (GNUWIN32_FIND_REQUIRED)
- message(SEND_ERROR "Could NOT find GNUWIN32")
- endif (GNUWIN32_FIND_REQUIRED)
-endif (GNUWIN32_FOUND)
+ if(GNUWIN32_FOUND)
+ if (NOT GNUWIN32_FIND_QUIETLY)
+ message(STATUS "Found GNUWIN32: ${GNUWIN32_DIR}")
+ endif()
+ else()
+ if (GNUWIN32_FIND_REQUIRED)
+ set(GNUWIN32_DIR CACHE PATH FORCE)
+ message(STATUS "ERROR: Could NOT find GNUWIN32, please set GNUWIN32_DIR")
+ message(STATUS "ERROR: or let cmake download all required files by using -DLYX_DEPENDENCIES_DOWNLOAD=1")
+ message(FATAL_ERROR)
+ endif()
+ endif()