<div dir="ltr"><div>Hi everyone,<br><br></div><div>I have tried to find solution to the following problem:<br></div><div>There is the project with environment variable described in <b>setenv.sh</b> file<br></div><div>Old build process looks like:<br></div><div><span style="background-color:rgb(255,242,204)">source <b>setenv.sh</b><br></span></div><div><span style="background-color:rgb(255,242,204)">make release</span><br><br></div><div>But I want to accomplish this by <b>CMake</b>. But I have realized that <b>CMake</b> does not have analog of source command that's why the following command does not work:<br></div><div><span style="background-color:rgb(255,242,204)">execute_process(COMMAND bash -c "source ../setenv")</span><br><br></div><div>Because <b>CMake</b> creates a child process.<br>How can I import variables that was set in some sh file ?</div><div><br></div><b>Thanks,</b><br><div><div class="gmail_signature"><div dir="ltr"><b>Best Regards<br>Denis Kotov</b><br></div></div>
</div></div>