set(ENV{MSYSTEM} "FAKEMSYS") set(ENV{MSYSTEM_PREFIX} "${CMAKE_CURRENT_LIST_DIR}/MSYSTEM_PREFIX") enable_language(C) find_path(MSYSTEM_PREFIX_INCLUDE_DIR NAMES msystem_prefix.h) message(STATUS "MSYSTEM_PREFIX_INCLUDE_DIR='${MSYSTEM_PREFIX_INCLUDE_DIR}'")