diff options
author | Brad King <brad.king@kitware.com> | 2023-03-03 14:22:37 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2023-03-03 14:22:46 (GMT) |
commit | 697ca5d51cb357643c121a0edde81999a9390b96 (patch) | |
tree | 313c9eada56ab91a343aee4efacb231f3d36adf1 /Modules | |
parent | a5b0056d1aea878e905b21d61d12dab1e786b5b4 (diff) | |
parent | 771387523a02e0c1ef5f68d20e9efc210b19c868 (diff) | |
download | CMake-697ca5d51cb357643c121a0edde81999a9390b96.zip CMake-697ca5d51cb357643c121a0edde81999a9390b96.tar.gz CMake-697ca5d51cb357643c121a0edde81999a9390b96.tar.bz2 |
Merge topic 'ExternalProject-revert-install'
771387523a ExternalProject: Restore driving install through build system
Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Acked-by: Craig Scott <craig.scott@crascit.com>
Reviewed-by: Ben Boeckel <ben.boeckel@kitware.com>
Merge-request: !8279
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/ExternalProject.cmake | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/Modules/ExternalProject.cmake b/Modules/ExternalProject.cmake index 18068cb..9a6cbd6 100644 --- a/Modules/ExternalProject.cmake +++ b/Modules/ExternalProject.cmake @@ -1857,11 +1857,7 @@ function(_ep_get_build_command else() set(cmd "${CMAKE_COMMAND}") endif() - if(step STREQUAL "INSTALL") - set(args --install ".") - else() - set(args --build ".") - endif() + set(args --build ".") get_property(_isMultiConfig GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG) if(_isMultiConfig) if (CMAKE_CFG_INTDIR AND @@ -1883,6 +1879,9 @@ function(_ep_get_build_command endif() list(APPEND args --config ${config}) endif() + if(step STREQUAL "INSTALL") + list(APPEND args --target install) + endif() # But for "TEST" drive the project with corresponding "ctest". if("x${step}x" STREQUAL "xTESTx") string(REGEX REPLACE "^(.*/)cmake([^/]*)$" "\\1ctest\\2" cmd "${cmd}") |