Re: [CMake] CMakeLists.txt options.

2012-10-28 Thread Alexander Neundorf
On Sunday 28 October 2012, Brad Bell wrote:
> The CMakeLists.txt command
>  option(  "help string describing option" [initial
> value] )
> Provides an option for the user to select as ON or OFF; i.e., a BOOL.
> 
> How does one provide an option for the user to select that is a PATH ?

set(SOME_PATH "/usr/" CACHE PATH "A path to something")

Alex
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


[CMake] CMakeLists.txt options.

2012-10-28 Thread Brad Bell

The CMakeLists.txt command
option(  "help string describing option" [initial 
value] )

Provides an option for the user to select as ON or OFF; i.e., a BOOL.

How does one provide an option for the user to select that is a PATH ?

--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake