[CMake] CMake generator executable variable

Patrick Boettcher patrick.boettcher at posteo.de
Wed Jun 22 10:58:33 EDT 2016


Hi Petr,

On Wed, 22 Jun 2016 16:52:17 +0200
Petr Kmoch <petr.kmoch at gmail.com> wrote:

> Hi Patrick.
> 
> If the "subproject" is also CMake-generated, as you say, the best way
> to build it would be:
> 
> add_custom_target(build-app
>       COMMAND ${CMAKE_COMMAND} --build #... other options as
> appropriate )
> 
> You might also have to set the WORKING_DIRECTORY.

Thanks. Just when your Email arrived I just found the --build-option.

It is even better than I thought it will be.

regards,
--
Patrick.


More information about the CMake mailing list