Hi, 
I have CMakeLists.txt with several external projects included:

<...>EXTERNALPROJECT_ADD(    bzip2    URL 
http://www.bzip.org/1.0.6/bzip2-1.0.6.tar.gz    CONFIGURE_COMMAND ""    
BUILD_COMMAND make PREFIX=${CMAKE_BINARY_DIR} SHARED= 
XCFLAGS=-I${CMAKE_BINARY_DIR}/include XLDFLAGS=-L${CMAKE_BINARY_DIR}/lib 
XLIBS=-ldl    INSTALL_COMMAND make install PREFIX=${CMAKE_BINARY_DIR} SHARED=   
 BUILD_IN_SOURCE 1)
EXTERNALPROJECT_ADD(    expat    URL 
http://downloads.sourceforge.net/project/expat/expat/2.1.0/expat-2.1.0.tar.gz   
 CONFIGURE_COMMAND ./configure --prefix=${CMAKE_BINARY_DIR} --disable-shared 
--enable-static    BUILD_IN_SOURCE 1)

<...>

What I want to achieve is two step build process:
1) First command should perform download and patch steps only
2) Then I want to move prepared source tree to other machine and complete build 
with second command. Second machine is strictly off-line (for security reasons).

Can you help me with implementing such scenario?                                
          
--

Powered by www.kitware.com

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

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

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to