[CMake] Two phase install?

Hendrik Sattler post at hendrik-sattler.de
Thu Mar 24 06:54:28 EDT 2016



Am 24. März 2016 10:14:40 MEZ, schrieb "Alan W. Irwin" <irwin at beluga.phys.uvic.ca>:
>On 2016-03-24 03:59-0000 Scott Aron Bloom wrote:
>
>> That method does NOT work with windows...  And since the visual
>studio project has the external as a single command, (not sure if its
>calling nmake or the new build cmd) the proeject is not run in
>parallel.
>
>I am pretty sure ExternalProject_Add only works with generators
>associated with build commands you can run from the command line such
>as make, nmake, jom, ninja, etc..  So, for MSVC the way you arrange
>that is
>avoid all the visual studio generators, and instead use one of
>"NMake Makefiles", "NMake Makefiles JOM", or "Ninja".

No. Just as with cmake-generated solutions, you can build those on the command line using msbuild or devenv, the one used by cmake depends on the cmake version. You can even use cmake itself to trigger the right build command for those. Parallel building must be enabled by hand when using msbuild. For devenv, the setting from the IDE is used.

HS



More information about the CMake mailing list