diff options
author | Brad King <brad.king@kitware.com> | 2009-03-18 15:01:02 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2009-03-18 15:01:02 (GMT) |
commit | 2cc46c12f8d1a9b37a24e0cdcb0f31b8a0a8d6ae (patch) | |
tree | eae24e7fe267784667bebe9799a1cf66ab5d02f0 /Tests/ExternalProject/CMakeLists.txt | |
parent | 6ae0ff626a67a2a81481bf127d07543d1f0cca16 (diff) | |
download | CMake-2cc46c12f8d1a9b37a24e0cdcb0f31b8a0a8d6ae.zip CMake-2cc46c12f8d1a9b37a24e0cdcb0f31b8a0a8d6ae.tar.gz CMake-2cc46c12f8d1a9b37a24e0cdcb0f31b8a0a8d6ae.tar.bz2 |
ENH: Add patch step for add_external_project
The patch step runs parallel to the update step since it does not make
sense to have both. Configuration of the step requires specification of
a PATCH_COMMAND argument to add_external_project.
Diffstat (limited to 'Tests/ExternalProject/CMakeLists.txt')
-rw-r--r-- | Tests/ExternalProject/CMakeLists.txt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Tests/ExternalProject/CMakeLists.txt b/Tests/ExternalProject/CMakeLists.txt index 856a713..813cd4d 100644 --- a/Tests/ExternalProject/CMakeLists.txt +++ b/Tests/ExternalProject/CMakeLists.txt @@ -90,6 +90,7 @@ add_external_project(${proj} DOWNLOAD_COMMAND "" INSTALL_ARGS "" INSTALL_COMMAND "" + PATCH_COMMAND "" SVN_REPOSITORY "" SVN_TAG "" TAR "" @@ -116,6 +117,7 @@ endif() set(proj TutorialStep1-LocalTAR) add_external_project(${proj} TAR "${CMAKE_CURRENT_SOURCE_DIR}/Step1.tar" + PATCH_COMMAND ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_SOURCE_DIR}/Step1Patch.cmake CMAKE_GENERATOR "${CMAKE_GENERATOR}" CMAKE_ARGS -DCMAKE_INSTALL_PREFIX:PATH=${prefix} INSTALL_COMMAND "" @@ -263,7 +265,7 @@ if(can_build_tutorial_step5) endif() add_test(TutorialStep1-LocalTAR-BuildTreeTest - "${build_dir}/TutorialStep1-LocalTAR/Tutorial" 36) + "${build_dir}/TutorialStep1-LocalTAR/EP-Tutorial" 36) add_test(TutorialStep1-LocalNoDirTAR-BuildTreeTest "${build_dir}/TutorialStep1-LocalNoDirTAR/Tutorial" 25) |