[CMake] IF(LINUX) don't work

Xavier Delannoy xavier.delannoy at netasq.com
Tue Jan 31 09:13:16 EST 2006


hi all, 

is this a bug ? or do I do something wrong ?

with this CMakeLists.txt : 

I have : 
PROJECT(TEST C)

IF(WIN32)
        MESSAGE(STATUS "WIN32")
ENDIF(WIN32)

IF(LINUX)
        MESSAGE(STATUS "LINUX")
ENDIF(LINUX)

IF(UNIX)
        MESSAGE(STATUS "UNIX")
ENDIF(UNIX)

me at buntu:~/Projects$ uname -a && cmake . 
Linux guillaume-buntu 2.6.12-10-686 #1 Mon Jan 16 17:58:04 UTC 2006 i686 GNU/Linux
-- UNIX
-- Configuring done
-- Generating done
-- Build files have been written to: /home/xavierd/Projects


-- 
Xavier Delannoy

R&D engineer
xavier.delannoy at netasq.com
http://www.netasq.com
Tél : +33 320 619 742
Fax : +33 320 619 639

-----------------------------------------------------------------------
This communication may contain information that is proprietary, 
privileged or confidential or otherwise legally exempt from disclosure.
The information contained in this e-mail is intended solely for the
addressee. Access to this e-mail by anyone else or any unauthorized
review, use, disclosure or distribution is unauthorized and prohibited.
If you are not the named addressee indicated in this message (or
responsible for delivery of the message to such person), you are not
authorized to read, print, retain, copy or disseminate this message
or any part of it. If you have received this message in error, please
notify the sender immediately by fax or e-mail and delete and destroy
all copies of the message. If you are the intended recipient but do not
wish to receive communications through this medium, please advise the
sender immediately. The views expressed in this e-mail are not 
necessarily the views of NetASQ. The company, its directors, officers
or employees make no representation or accept any liability for its
accuracy or completeness unless expressly stated to the contrary.
------------------------------------------------------------------------


More information about the CMake mailing list