[CMake] Set "alias" in cmake script
Stefan
stefan at schweter.it
Wed Dec 18 04:19:10 EST 2013
Hi cmake users,
I'm not sure if this is possible or not, but I'm trying to set an (environment) alias in my cmake script:
alias makefast="make -j $(cat /proc/cpuinfo | grep -c processor)"
My intention is to use "cmake .." and after that I simply want to type "makefast" and my project is going to be compiled.
Of course I could set the alias name in my e.g. .bashrc, but having this in my cmake file would be a nice thing to have.
Thanks in advance!
Stefan
More information about the CMake
mailing list