Hi, I want to pass a variable to CMakeLists.txt's in sub directories:
Top directory CMakeLists.txt: set( VAR1 "" ) add_subdirectory (subdir1) add_subdirectory (subdir2) Each subdir CMakeLists.txt: ... set( VAR1 "${VAR1} extend_var1" ) ... I use VAR1 later on in the linker. How can I make this work? Kind regards, Sander. _______________________________________________ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake