Merge topic 'ExternalProject-ctest-config'
ec00e89e ExternalProject: Fix TEST_BEFORE_INSTALL for multi-config generators 5d739a3c ExternalProject: Simplify `cmake --build` configuration passing
This commit is contained in:
commit
071c94eeac
@ -1230,9 +1230,9 @@ function(_ep_get_build_command name step cmd_var)
|
||||
set(cmd "${CMAKE_COMMAND}")
|
||||
endif()
|
||||
set(args --build ".")
|
||||
if (CMAKE_CFG_INTDIR AND NOT CMAKE_CFG_INTDIR STREQUAL ".")
|
||||
list(APPEND args --config "${CMAKE_CFG_INTDIR}")
|
||||
endif ()
|
||||
if(CMAKE_CONFIGURATION_TYPES)
|
||||
list(APPEND args --config $<CONFIG>)
|
||||
endif()
|
||||
if(step STREQUAL "INSTALL")
|
||||
list(APPEND args --target install)
|
||||
endif()
|
||||
@ -1240,6 +1240,9 @@ function(_ep_get_build_command name step cmd_var)
|
||||
if("x${step}x" STREQUAL "xTESTx")
|
||||
string(REGEX REPLACE "^(.*/)cmake([^/]*)$" "\\1ctest\\2" cmd "${cmd}")
|
||||
set(args "")
|
||||
if(CMAKE_CONFIGURATION_TYPES)
|
||||
list(APPEND args -C $<CONFIG>)
|
||||
endif()
|
||||
endif()
|
||||
endif()
|
||||
else()
|
||||
|
Loading…
x
Reference in New Issue
Block a user