[CMake] Bug in 2.8 branch (Head branch also)

Bill Hoffman bill.hoffman at kitware.com
Tue Nov 3 10:04:10 EST 2009


Steven Wilson wrote:
> Consider the following:
> 
> foo.cpp
> 
> #include <iostream>
> 
> int main()
> {
>     std::cout << "foo" << std::endl;
>     return 0;
> }
> 
> 
> CMakeLists.txt
> 
> cmake_minimum_required(VERSION 2.6.4)
> 
> add_executable(foo foo.cpp)
> 
> set(BUILD_FOO ON PARENT_SCOPE)
> 
> 
> With CMake built from the CMake-2-8 branch and also the head  branch of 
> the CVS tree, the set(BUILD_FOO ON PARENT_SCOPE) crashes CMake on 
> snow-leopard.
> 
Pretty sure this is fixed in CVS, and will be in the next RC, can you 
try CVS head?  That said this is still bad CMake code as there is no 
parent to the top level CMakeLists.txt file.

-Bill


More information about the CMake mailing list