[CMake] IF(LINUX) don't work

Alexander Neundorf a.neundorf-work at gmx.net
Tue Jan 31 09:26:58 EST 2006


> --- 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". 
 
Bye 
Alex 
 
 
 
 
 

-- 
10 GB Mailbox, 100 FreeSMS/Monat http://www.gmx.net/de/go/topmail
+++ GMX - die erste Adresse für Mail, Message, More +++


More information about the CMake mailing list