How to export the user-defined variable in to the parent directory in cmake?

sflahfl 发布于 2012/07/19 18:48
阅读 353
收藏 0
my directory hierarchical is : dir1/dir2/dir3. 
In dir3's CMakeLists.txt, I define a custom variable named 'xxx' using the command set(xxx yyy). 
I want to use the variable 'xxx' in dir1's CMakeLists.txt, how to do that? Can export the user-defined variable?
加载中
返回顶部
顶部