Hi Michael:

They are more or less something like:


ExternalProject_Add(
   ${PACKAGE}
   SOURCE_DIR ${BASE_SOURCE}/${PACKAGE}/src
   BINARY_DIR ${BASE_BUILD}/${PACKAGE}/build
   INSTALL_DIR ${CMAKE_INSTALL_PREFIX}
   URL http://www.zlib.net/zlib-1.2.3.tar.gz
PATCH_COMMAND ${CMAKE_COMMAND} -E copy "${Package_Dir}/Patch/CMakeLists.txt" <SOURCE_DIR>/CMakeLists.txt
   CMAKE_COMMAND ${CMAKE_COMMAND}
   CMAKE_ARGS
       ${Package_std_cmake_args}
)


The problem is that I do not know how to easily issue a re-build without a re-download: The steps are always done, even if there is something broken in the configure or build step, so if I just clean the whole project, the download happen again, even if the (patched)source dir is already there.

I am working in MSVC9, from the master project, a download is re-issued even whn I switch from debug to release (i think because stamp file are config dependent)

Thanks in advance.

Luigi


Michael Wild wrote:
On 10. Feb, 2010, at 14:57 , Luigi Calori wrote:

I' m trying to develop a project for building several lib dependencies using 
ExternalProjectAdd

Is there a way to avoid re-download of upstream tar.gz while developing config 
flags?

ANY examples of ExternalProjectAdd would REALLY welcome

Thanks in advance.

Luigi

That's strange, this doesn't happen in my projects...

Can you show an example of your ExternalProject_Add calls?

Michael


_______________________________________________
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