<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>thank you J Decker for your reply.</p>
<p><br>
</p>
<p>Your suggestion does work but I want to preserve standalone use
of the project, meaning that I want a reference to CMake source
root directory.<br>
</p>
<p>Assuming there is only 1 hierarchy I could add an option:</p>
<p><br>
</p>
<p>if ( SUPERBUILD )</p>
<p> <i>message("${CMAKE_SOURCE_DIR}/.. =
/home/user/super/ext1/..")</i></p>
<p><i>else ()</i></p>
<p><i> </i><i><i>message("${CMAKE_SOURCE_DIR} =
/home/user/super/ext1")</i></i></p>
<p>endif ()</p>
<p><br>
</p>
<p>I think the better solution now is to make it relative to build
directory and force out of source builds. <br>
</p>
<p><br>
</p>
<div class="moz-cite-prefix">On 09/07/2019 14:26, J Decker wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAA2GJqW1FYOn6Zyf+_SjXh8naLMv70+nVXJWKAha3jQDG1qNLQ@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">
<div dir="ltr"><br>
</div>
<div class="gmail_quote">
<div> </div>
<div><i>message("${CMAKE_SOURCE_DIR}/.. =
/home/user/super/ext1/..")</i> which == /home/user/super</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left:1px solid
rgb(204,204,204);padding-left:1ex">
<div bgcolor="#FFFFFF">
<div
class="gmail-m_7999541161878854554moz-forward-container"><br>
<br>
</div>
</div>
</blockquote>
</div>
</div>
</blockquote>
</body>
</html>