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