[CMake] using ExternalProject_Add when cmake is launched

Stéphane Ancelot sancelot at numalliance.com
Wed May 2 02:47:40 EDT 2018


Hi,

I have got some win32 libraries dependencies stored in a project .

Then I added ExternalProject_Add at beginning of my cmakelists file in 
order to clone this dependency to be available.

and then provide the root path as follow:

SET(CMAKE_FIND_ROOT_PATH /usr/i586-mingw32msvc
${CMAKE_CURRENT_SOURCE_DIR}/WIN32DEPS/JPEGLIB/jpegsrc-9c
${CMAKE_CURRENT_SOURCE_DIR}/WIN32DEPS/zlib-1.2.3-lib
${CMAKE_CURRENT_SOURCE_DIR}/WIN32DEPS/libpng-1.2.37-lib
${CMAKE_CURRENT_SOURCE_DIR}/WIN32DEPS/ftgl-binary
${CMAKE_CURRENT_SOURCE_DIR}/WIN32DEPS/freetype-dev_2.4.2-1
${CMAKE_CURRENT_SOURCE_DIR}/WIN32DEPS/iconv-1.9.2.1
                         )


unfortunately, the project is not cloned when cmake is launched and the 
next dependencies don't find the packages :-(

What Can I do ?

Regards,

S.Ancelot


More information about the CMake mailing list