mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-03 04:03:23 +03:00
Tests: CPack fix for invalid config file path
Invalid config file path was passed to per test specific prerequirements script.
This commit is contained in:
1 parent
9e57dafd74
commit
a15f51620b
1 file changed
+1
-2
@@ -19,8 +19,7 @@ function(run_cpack_test_common_ TEST_NAME types build SUBTEST_SUFFIX source)
|
||||
include("${RunCMake_SOURCE_DIR}/${TEST_TYPE}/${TEST_NAME}-Prerequirements.cmake")
|
||||
|
||||
set(FOUND_PREREQUIREMENTS false)
|
||||
get_test_prerequirements("FOUND_PREREQUIREMENTS"
|
||||
"${TEST_CONFIG_DIR}/${type}_config.cmake")
|
||||
get_test_prerequirements("FOUND_PREREQUIREMENTS" "${config_file}")
|
||||
|
||||
# skip the test if prerequirements are not met
|
||||
if(NOT FOUND_PREREQUIREMENTS)
|
||||
|
||||
Reference in new issue
Block a user