[cmake-developers] [PATCH] Enable Wmake generator on Linux host
Brad King
brad.king at kitware.com
Mon Mar 17 10:31:27 EDT 2014
On 03/16/2014 07:43 AM, Jiri Malak wrote:
> I enclosed patch, which enable generation of wmake makefiles on Linux host.
The CMake condition
if(WIN32 OR UNIX AND NOT APPLE)
and the preprocessor condition
#if defined(_WIN32) || defined(__linux__)
are not fully equivalent. Instead you could perform the test in
the CMake code, perhaps using CMAKE_SYSTEM_NAME, and then tell
cmake.cxx about it with
set_property(SOURCE cmake.cxx PROPERTY COMPILE_DEFINITIONS USE_WMAKE)
Thanks,
-Brad
More information about the cmake-developers
mailing list