CMake – Can not make decisions based on CMAKE_SYSTEM_NAME
currently I am working on a project using CMake. I want to do stuff based on the value of CMAKE_SYSTEM_NAME. It seems that the CMake if statement does not work as I expected. message(STATUS "CMAKE_SYSTEM_NAME = >${CMAKE_SYSTEM_NAME}<") if(${CMAKE_SYSTEM_NAME} EQUAL "Windows") message(STATUS "Why am I not called?") else() message(STATUS "I should not be here!\nCMAKE_SYSTEM_NAME = >${CMAKE_SYSTEM_NAME}<.")… Read More CMake – Can not make decisions based on CMAKE_SYSTEM_NAME