[CMake] option() behavior
Philip Lowman
philip at yhbt.com
Sun Apr 19 11:53:29 EDT 2009
I encountered this the other day. Is this a bug?
project(Foo)
cmake_minimum_required(VERSION 2.6)
set(WTFO ON)
message("WTFO is ${WTFO}")
option(WTFO "wtfo" OFF)
message("WTFO is ${WTFO}")
Here's the output...
(first run)
WTFO is ON
WTFO is OFF
(second run)
WTFO is ON
WTFO is ON
--
Philip Lowman
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20090419/e8fa38ee/attachment.htm>
More information about the CMake
mailing list