[prev in list] [next in list] [prev in thread] [next in thread] 

List:       cmake
Subject:    Re: [CMake] Question regarding External Project add and VTK
From:       jmerkow <jmerkow () gmail ! com>
Date:       2014-06-03 1:00:54
Message-ID: 1401757254713-7587560.post () n2 ! nabble ! com
[Download RAW message or body]

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.
-- 

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://www.cmake.org/mailman/listinfo/cmake


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic