I think the issue you are running into is order of execution - when
using external projects it is often a good idea to have all the
ExternalProject_Add commands in a superproject file with your own
project source directory as one of the external projects. This way you
can use the DEPENDS parameter
oh, that was it a typo!
A few more questions. I build the project like this:
ExternalProject_Add(sdl
HG_REPOSITORY http://hg.libsdl.org/SDL
UPDATE_COMMAND ""
CMAKE_ARGS -DSDL_STATIC:BOOL=FALSE
-DCMAKE_INSTALL_PREFIX:PATH=${CMAKE_BINARY_DIR}/lib
SOURCE_DIR ${CMAKE_CURRENT_SOUR
What's the word "clone" doing in there? That should be a URL, not
command parameters.
On Tue, Dec 15, 2015 at 2:01 AM, Owen Hogarth II wrote:
> I have been reading this:
> https://cmake.org/cmake/help/v3.0/module/ExternalProject.html
>
> trying to add sdl external project but I am having issues.
I have been reading this:
https://cmake.org/cmake/help/v3.0/module/ExternalProject.html
trying to add sdl external project but I am having issues. I created a new
cmake project to test.
I already downloaded the sdl library and can build it correctly by manually
calling cmake commands but this is
My project uses the "external project" functionality to download and
install a "headers-only" library. I use an "interface library" to import
that library dependency to my project. I'd like to add a dependency from
the external project target to the interface library to trigger the library
download