[CMake] Modification of a variable in a CMakeLists called with add_subdirectory
Michael Wild
themiwi at gmail.com
Mon Nov 9 07:06:16 EST 2009
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 the subfolder but once back in the main
> one,
> variable is set back to its previous value. Is there a way to avoid
> this behavior ?
>
> Thanks for your help,
>
> Olivier
More information about the CMake
mailing list