View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0002221CMakeCMakepublic2005-09-09 17:262005-09-15 13:55
ReporterKlaas Holwerda 
Assigned ToKen Martin 
PrioritylowSeverityfeatureReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0002221: ADD_SUBDIRECTORY export variables
DescriptionADD_SUBDIRECTORY(foo EXPORT_VARIABLES FOO_VAR1 FOO_VAR2)

The ADD_SUBDIRECTORY command would evaluate the subdirectory configuration and then set the variables FOO_VAR1 and FOO_VAR2 to their subdirectory values in the current directory. This would allow subdirectories to continue to work in isolation but the parent directory would have the option of getting information it wants. Since the variables are explicitly listed then it will be clear when/how these variables are set just from reading the CMake code in a directory and its parents without exploring all children.
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0003028)
Ken Martin (developer)
2005-09-15 13:55

This capability (and a bit more) has been added by extending the GET_DIRECTORY_PROPERTY command. This approach also has the benefit of being able to get variables from directories that are not immediate subdirectories without having to modify the intermediate directory's CMakeLists file.

 Issue History
Date Modified Username Field Change


Copyright © 2000 - 2018 MantisBT Team