[CMake] Disabling IF strict checking
Pau Garcia i Quiles
pgquiles at elpauer.org
Sat May 24 10:44:45 EDT 2008
Quoting Eduardo Alberto Hernández Muñoz <coz.eduardo.hernandez at gmail.com>:
> Hi,
>
>>> I am wondering if there is a way to disable checking that the ELSE and
>>> ENDIF arguments need to the the same as the initial IF. For example,
>> [...]
>> This is the default in CMake 2.6, you don't need to specify the statement in
>> the endif.
>
> Thanks!
>
> I'm running on Cmake 2.4.8, and I was wondering if there was any
> reason to upgrade to 2.6.0, seems like I found one :p
You can SET( CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS TRUE ) if you want to
disable strictness checking with CMake 2.4.8
--
Pau Garcia i Quiles
http://www.elpauer.org
(Due to my workload, I may need 10 days to answer)
More information about the CMake
mailing list