[CMake] cmake woes on windows...
Phil Pellouchoud
Phil at slacker.com
Mon May 5 09:32:49 EDT 2008
That fixed it, thanks!
-----Original Message-----
From: Bill Hoffman [mailto:bill.hoffman at kitware.com]
Sent: Saturday, May 03, 2008 12:37 PM
To: Phil Pellouchoud
Cc: cmake at cmake.org
Subject: Re: [CMake] cmake woes on windows...
Phil Pellouchoud wrote:
> This CMakeLists.txt:
>
>
>
> SET( CMAKE_CXX_FLAGS "/W4 /Od /DWIN32 /D_UNICODE /DUNICODE
> /D_CRT_SECURE_NO_DEPRECATE /Gm /EHsc /RTC1 /W4 /Wp64 /ZI /TP" )
>
> MESSAGE( "CMAKE_CXX_FLAGS=" ${CMAKE_CXX_FLAGS} )
>
>
>
> PROJECT( fubar )
>
> MESSAGE( "CMAKE_CXX_FLAGS=" ${CMAKE_CXX_FLAGS} )
>
>
>
> ADD_EXECUTABLE( fubar WIN32 fubar.cpp )
>
> MESSAGE( "CMAKE_CXX_FLAGS=" ${CMAKE_CXX_FLAGS} )
>
>
>
> Gives this:
>
> S:\software\fubar\build> cmake ..
>
> CMAKE_CXX_FLAGS=/W4 /Od /DWIN32 /D_UNICODE /DUNICODE
> /D_CRT_SECURE_NO_DEPRECATE /Gm /EHsc /RTC1 /W4 /Wp64 /ZI /TP
>
> -- Check for working C compiler: cl
>
> -- Check for working C compiler: cl -- works
>
> -- Check size of void*
>
> -- Check size of void* - done
>
> -- Check for working CXX compiler: cl
>
> -- Check for working CXX compiler: cl -- works
>
> CMAKE_CXX_FLAGS= /DWIN32 /D_WINDOWS /W3 /Zm1000 /EHsc /GR
>
> CMAKE_CXX_FLAGS= /DWIN32 /D_WINDOWS /W3 /Zm1000 /EHsc /GR
>
> -- Configuring done
>
> -- Generating done
>
> -- Build files have been written to: S:/software/fubar/build
>
>
>
> S:\software\fubar\build>cmake -version
>
> cmake version 2.4-patch 8
>
>
>
> And indeed, if I look at fubar.vcproj, the compile flags are
missing...
>
>
>
> Any help would be greatly appreciated.
>
>
>
> -phil
>
>
>
> p.s. I get this with or without the WIN32 flag in ADD_EXECUTABLE.
>
Set the flags after the project command.
-Bill
More information about the CMake
mailing list