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
--

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to