[CMake] Force single threaded build in a directory

Bill Hoffman bill.hoffman at kitware.com
Wed Sep 4 18:16:53 EDT 2013


On 9/4/2013 5:53 PM, Ashok Nalkund wrote:
> Hi All,
>    I have a package which gives strange results when I build it with
> multiple threads (make -j...). Is there a way I can force the package to
> be built using a single thread? Something I can put in the CMakeLists.txt?
You most likely need an add_dependencies call.  You must have a target 
that depends on another one in a way that is not explicit.


-Bill



More information about the CMake mailing list