[CMake] configure_file - false vs "0"
Bill Hoffman
bill.hoffman at kitware.com
Sun Aug 9 17:07:18 EDT 2009
James C. Sutherland wrote:
>> #define TEST_VAR_VALUE ${TEST_VAR_VALUE}
>>
>> is what you want.
>
>
> But if I do
> set( TEST_VAR_VALUE 0 )
> then this results in TEST_VAR_VALUE being undefined rather than having
> the value of 0 as I want. If the value is anything other than zero it
> works. This is what I tried to explain in my original (probably
> unclear) post...
>
No it won't. That is a #define not a #cmakedfine. It will always be
there.
-Bill
More information about the CMake
mailing list