Hi

In my project I have to compile the same external projects by the different
generators, is that possible to handle this cases by ExternalProject_Add ?

I tried this way, firstly, just download the repository

ExternalProject_Add(OPENEXR_DOWNLOAD
    PREFIX ${OPENEXR_PREFIX}
    GIT_REPOSITORY https://github.com/openexr/openexr.git
    GIT_TAG v2.2.0
    CONFIGURE_COMMAND ""
    BUILD_COMMAND ""
    INSTALL_COMMAND "")


ExternalProject_Get_Property(OPENEXR_DOWNLOAD SOURCE_DIR)
SET(OPENEXR_SOURCE_DIR ${SOURCE_DIR})

Then I tried to create a specific new target to use specific generator

ExternalProject_Add(OPENEXR_VC11
  DEPENDS OPENEXR_DOWNLOAD
  SOURCE_DIR ${OPENEXR_SOURCE_DIR}/IlmBase)


Seems can't work, it requires an non-empty SOURCE_DIR, but before
downloading, it's empty :(

So is there any better way to do this ? Thanks very much !
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake

Reply via email to