[CMake] ExternalProject_Add and BUILD_COMMAND
David Cole
david.cole at kitware.com
Tue Jan 31 13:20:59 EST 2012
Take the double quotes away and just use:
BUILD_COMMAND make macosx
Use $(MAKE) instead of make if you want to pass the outer level make's -j parallelism down to the inner make...
HTH,
David
On Jan 31, 2012, at 12:54 PM, Francisco Requena Espí <frarees at gmail.com> wrote:
> I want to use ExternalProject_Add, but in order to build my project I
> need to call 'make macosx'. I do:
>
> EXTERNALPROJECT_ADD(PROJ SOURCE_DIR
> "${CMAKE_CURRENT_SOURCE_DIR}/proj1" CONFIGURE_COMMAND "" BUILD_COMMAND
> "make macosx" BUILD_IN_SOURCE 1 INSTALL_COMMAND "")
>
> But it doesn't work (it says it cannot find command make macosx). If I
> do "make" it works, but I need to give an argument to it. How I do
> pass an argument? It's needed something like BUILD_COMMAND_ARGS
> "macosx"?
>
> Thanks.
> --
>
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
More information about the CMake
mailing list