Re: [CMake] Problem with option() when in subdirectory

2011-09-21 Thread David Demelier
On 18/09/2011 21:54, Alexander Neundorf wrote: On Sunday, September 18, 2011 02:42:49 PM Michael Wild wrote: On 09/18/2011 02:32 PM, Alexander Neundorf wrote: On Sunday, September 18, 2011 02:15:54 PM David Demelier wrote: Hello, I noticed that option() values are not checked when the option(

Re: [CMake] Problem with option() when in subdirectory

2011-09-18 Thread Alexander Neundorf
On Sunday, September 18, 2011 02:42:49 PM Michael Wild wrote: > On 09/18/2011 02:32 PM, Alexander Neundorf wrote: > > On Sunday, September 18, 2011 02:15:54 PM David Demelier wrote: > >> Hello, > >> > >> I noticed that option() values are not checked when the option() command > >> is under a add_s

Re: [CMake] Problem with option() when in subdirectory

2011-09-18 Thread Michael Wild
On 09/18/2011 02:32 PM, Alexander Neundorf wrote: > On Sunday, September 18, 2011 02:15:54 PM David Demelier wrote: >> Hello, >> >> I noticed that option() values are not checked when the option() command >> is under a add_subdirectory() target. >> >> Example: >> >> >> -- a's CMakeLists.txt -- >> p

Re: [CMake] Problem with option() when in subdirectory

2011-09-18 Thread Alexander Neundorf
On Sunday, September 18, 2011 02:15:54 PM David Demelier wrote: > Hello, > > I noticed that option() values are not checked when the option() command > is under a add_subdirectory() target. > > Example: > > > -- a's CMakeLists.txt -- > project(a C) > > set(BUILD_DEMOS OFF) > add_subdirectory(e

[CMake] Problem with option() when in subdirectory

2011-09-18 Thread David Demelier
Hello, I noticed that option() values are not checked when the option() command is under a add_subdirectory() target. Example: -- a's CMakeLists.txt -- project(a C) set(BUILD_DEMOS OFF) add_subdirectory(extern/b) -- extern/b's CMakeLists.txt -- project(b C) option(BUILD_DEMOS "Enable the