mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-03 04:03:23 +03:00
ExternalProject: Fix TEST_BEFORE_INSTALL for multi-config generators
In multi-config generators we must tell `ctest` what configuration to test. Reported-by: Taylor Braun-Jones <taylor@braun-jones.org>
This commit is contained in:
1 parent
5d739a3c84
commit
ec00e89e83
1 file changed
+3
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user