set(ENV{MSYSTEM} "FAKEMSYS") set(ENV{MSYSTEM_PREFIX} "${CMAKE_CURRENT_LIST_DIR}/MSYSTEM_PREFIX") enable_language(C) find_library(MSYSTEM_PREFIX_LIB NAMES msystem_prefix) message(STATUS "MSYSTEM_PREFIX_LIB='${MSYSTEM_PREFIX_LIB}'")