[CMake] Question regarding External Project add and VTK

jmerkow jmerkow at gmail.com
Mon Jun 2 21:00:54 EDT 2014


I see, that makes a lot of sense.   And in order to pass options from the
'superbuild' build to the 'normal' build you make them options as command
line args in your ExternalProhect_Add command?  i.e.:

set( proj my_prog )
  ExternalProject_Add( ${proj}
    DOWNLOAD_COMMAND ""
    SOURCE_DIR "${${proj}_Source_Dir}"
    BINARY_DIR "${${proj}_Binary_Dir}"
    CMAKE_GENERATOR ${gen}
    CMAKE_ARGS
        -D${proj}_option1:BOOL=${proj}_option1
        -D${proj}_some_LIBRARY:FILEPATH=${proj}_some_LIBRARY
        ...
    INSTALL_DIR ${proj}/path/
    DEPENDSsd
        ${proj_DEPENDS})

Is there an easier way to pass all the options to the 'normal' build? 

-Jameson



--
View this message in context: http://cmake.3232098.n2.nabble.com/Question-regarding-External-Project-add-and-VTK-tp7587557p7587560.html
Sent from the CMake mailing list archive at Nabble.com.


More information about the CMake mailing list