[CMake] Cmake 2.2.2 with Visual Studio 6. Bug?
Filipe Sousa
filipe at ipb.pt
Thu Nov 24 08:33:37 EST 2005
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Alexander Neundorf wrote:
>
>
> It's a problem of the CMakeLists.txt coming with the kdevelop template
> project. You have to correct the CMakeLists.txt.
> It contains a line like the following:
>
> #add definitions, compiler switches, etc.
> ADD_DEFINITIONS(-Wall -O2)
>
> This has to be made conditionally, e.g. as a simple test:
>
> IF (WIN32)
> ADD_DEFINITIONS( ...whatever you want... )
> ELSE (WIN32) # not windows, but e.g. linux
> ADD_DEFINITIONS(-Wall -O2)
> ENDIF (WIN32)
>
> I'll fix the templates in kdevelop, but this won't get release before KDE
> 3.5.1.
>
> Bye
> Alex
>
- -Wall should be added to gcc.cmake.
I don't know if it's a great idea to have -O3 CMAKE_C_FLAGS_RELEASE_INIT
and CMAKE_CXX_FLAGS_RELEASE_INIT instead of -O2
Filipe Sousa
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
iD8DBQFDhcExbQdNYqwwwCwRAk1CAJ9E2GWahQDNCe11yqug7a54NC0M/gCfaeCH
D8gadxixyFB78NhqKv/xKCA=
=/jJf
-----END PGP SIGNATURE-----
More information about the CMake
mailing list