[CMake] Off-line builds with EXTERNALPROJECT_ADD
fjdsamfsfd ivan
wow8gttaiyq at hotmail.com
Wed Nov 7 06:29:08 EST 2012
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?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20121107/48aa5f0f/attachment.htm>
More information about the CMake
mailing list