[CMake] CMake How to check target for build

2017-05-15 Thread Denis Kotov
Hi everyone, It is a copy of question in http://stackoverflow.com/ questions/43858722/cmake-how-to-check-target-for-build I am interesting in analog of *MAKECMDGOALS *in* Makefile *. For example if I use the following code for build *:*

[CMake] Is there analog of source command from bash ?

2017-05-28 Thread Denis Kotov
Hi everyone, I have tried to find solution to the following problem: There is the project with environment variable described in *setenv.sh* file Old build process looks like: source *setenv.sh* make release But I want to accomplish this by *CMake*. But I have realized that *CMake* does not have