[CMake] Modification of a variable in a CMakeLists called with add_subdirectory

2009-11-09 Thread Olivier Pierard
Hi, I'm facing another rather simple problem. I try to modify a variable defined in the main CMakeLists.txt within another one called by the add_subdirectory command. Modification is well taken into account in the subfolder but once back in the main one, variable is set back to its previous

Re: [CMake] Modification of a variable in a CMakeLists called with add_subdirectory

2009-11-09 Thread Marcel Loose
Hi Oliver, Use the option PARENT_SCOPE when setting the variable. HTH, Marcel Loose. On Mon, 2009-11-09 at 11:11 +0100, Olivier Pierard wrote: Hi, I'm facing another rather simple problem. I try to modify a variable defined in the main CMakeLists.txt within another one called by the

Re: [CMake] Modification of a variable in a CMakeLists called with add_subdirectory

2009-11-09 Thread Michael Wild
set(... PARENT_SCOPE) Michael On 9. Nov, 2009, at 11:11 , Olivier Pierard wrote: Hi, I'm facing another rather simple problem. I try to modify a variable defined in the main CMakeLists.txt within another one called by the add_subdirectory command. Modification is well taken into account in