<div style="line-height:1.7;color:#000000;font-size:14px;font-family:arial"><div>my directory hierarchical is : dir1/dir2/dir3.&nbsp;</div><div>In dir3's CMakeLists.txt, I define a custom variable named 'xxx' using the command set(xxx yyy).&nbsp;</div><div>I want to use the variable 'xxx' in dir1's CMakeLists.txt, how to do that? Can export the user-defined variable?</div></div><br><br><span title="neteasefooter"><span id="netease_mail_footer"></span></span>