[CMake] Building a tool immediately so it can be used later in same CMake run

Nagger nagger at gmx.de
Thu Apr 14 16:53:19 EDT 2016


Am 14.04.2016 um 14:17 schrieb Craig Scott:
> Re-using the same build directory is a key part of the technique to 
> avoid having to build the same thing twice.

A vague idea:
Use two different CMAKE_BINARY_DIRs but let the two mycompdir-targets 
use the same binary subdirectory.
(By using the 2nd parameter of add_subdirectory())


Marc


[1] https://cmake.org/cmake/help/v3.0/command/add_subdirectory.html





More information about the CMake mailing list