mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-07 04:02:23 +03:00
Tests: Teach RunCMake to optionally exclude the source dir argument
This commit is contained in:
1 parent
784c35b444
commit
538721939f
1 file changed
+7
-1
@@ -98,8 +98,14 @@ function(run_cmake test)
|
||||
else()
|
||||
set(_D_CMAKE_GENERATOR_INSTANCE "")
|
||||
endif()
|
||||
if(NOT RunCMake_TEST_NO_SOURCE_DIR)
|
||||
set(maybe_source_dir "${RunCMake_TEST_SOURCE_DIR}")
|
||||
else()
|
||||
set(maybe_source_dir "")
|
||||
endif()
|
||||
execute_process(
|
||||
COMMAND ${CMAKE_COMMAND} "${RunCMake_TEST_SOURCE_DIR}"
|
||||
COMMAND ${CMAKE_COMMAND}
|
||||
${maybe_source_dir}
|
||||
-G "${RunCMake_GENERATOR}"
|
||||
-A "${RunCMake_GENERATOR_PLATFORM}"
|
||||
-T "${RunCMake_GENERATOR_TOOLSET}"
|
||||
|
||||
Reference in new issue
Block a user