[CMake] Passing -j (or other make flags) to make?
Tyler Roscoe
tyler at cryptio.net
Wed Dec 17 13:09:08 EST 2008
Is there a way to set flags for make from my CMakeLists.txt?
Specifically, I have a cluster of build machines and I would like each
of them to use a specific -j flag. (I would set the -j flag in a
"global" cmake file where I set up things like project-wide -D flags and
third-party library locations.)
-j is a make option, not a compiler option, so I can't use
ADD_DEFINITIONS or CMAKE_CXX_FLAGS.
I couldn't find anything with google. This old thread talks about
$(MAKEFLAGS) but setting that variable doesn't seem to help me:
http://www.cmake.org/pipermail/cmake/2003-October/004398.html
Is this possible? Or do I need to make a wrapper script to set up extra
options for make?
Thanks,
tyler
More information about the CMake
mailing list