Use CMake 3.14+ documented way to pass the source dir -S. (#337)

The `-H<src_dir>` was never officially documented by CMake
This commit is contained in:
Robert Maynard
2022-01-27 17:45:35 -05:00
committed by GitHub
parent 4f7af69925
commit 11c7ec8afa
12 changed files with 17 additions and 17 deletions

View File

@@ -11,7 +11,7 @@ function(init_project_with_dependency TEST_DEPENDENCY_NAME)
)
execute_process(
COMMAND ${CMAKE_COMMAND} "-H${CMAKE_CURRENT_LIST_DIR}/local_dependency" "-B${TEST_BUILD_DIR}"
COMMAND ${CMAKE_COMMAND} "-S${CMAKE_CURRENT_LIST_DIR}/local_dependency" "-B${TEST_BUILD_DIR}"
RESULT_VARIABLE ret
)