[cmake-developers] [PATCH] Enable Wmake generator on Linux host

Jiri Malak malak.jiri at gmail.com
Mon Mar 17 14:34:26 EDT 2014


Brad,

I attached corrected patch.

Regards

Jiri

> 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
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Enable-WMake-generator-on-Linux.patch
Type: text/x-patch
Size: 3542 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20140317/19dc60d3/attachment-0002.bin>


More information about the cmake-developers mailing list