[CMake] How to build projects with make -j2 and ADD_SUBDIRECTORY?
Micha Renner
Micha.Renner at t-online.de
Mon Feb 16 02:49:22 EST 2009
How to build projects with make -j2 and ADD_SUBDIRECTORY?
A TOP-Level CMakeLists.txt has the following lines:
ADD_SUBDIRECTORY(libtiff) # The Library
ADD_SUBDIRECTORY(test) # Programm depending on libtiff
# more subdiretories depending on libtiff
The build-command is:
make -j2
The result is: make cancels the build of the test-subdirectory (libtiff
isn't ready).
What can I do that the project in the test-directory waits until the
build of the libaray is done?
I guess, this is something what CMake can't do yet.
With best regards
Michael
2001-12-10 11:03 king
More information about the CMake
mailing list