[CMake] IF(LINUX) don't work

Filipe Sousa filipe at ipb.pt
Tue Jan 31 09:30:01 EST 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Alexander Neundorf wrote:
>> --- Ursprüngliche Nachricht --- 
>> Von: Xavier Delannoy <xavier.delannoy at netasq.com> 
>> An: cmake at cmake.org 
>> Betreff: [CMake] IF(LINUX) don't work 
>> Datum: Tue, 31 Jan 2006 15:13:16 +0100 
>>  
>> hi all,  
>>  
>> is this a bug ? or do I do something wrong ? 
>  
> It's a known missing feature, the cmake developers have it on their todo. 
> Maybe you could file a bug report/feature request. 
>  
> You can test with IF(): 
> WIN32 
> UNIX 
> CYGWIN 
> MINGW 
> APPLE 
>  
> You can test also 
> IF("${CMAKE_SYSTEM}" MATCHES "Linux"), see the cmake wiki page "useful 
> cmake variables". 

There is also CMAKE_SYSTEM_NAME
In my case:

CMAKE_SYSTEM "Linux-2.6.15-suspend2-r4"
CMAKE_SYSTEM_NAME "Linux"

> Bye 
> Alex 
>  
>  
>  
>  
>  
> 


- --
Filipe Sousa
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)

iD8DBQFD33RpbQdNYqwwwCwRAsYcAKCsDAZPnE/4mrHNjJ5IV6BippJP9ACeLXyc
ht1LdsTt3zv6+YXzhgqN7Mg=
=UVfV
-----END PGP SIGNATURE-----


More information about the CMake mailing list