diff options
author | Craig Scott <craig.scott@crascit.com> | 2023-02-24 06:07:01 (GMT) |
---|---|---|
committer | Craig Scott <craig.scott@crascit.com> | 2023-02-24 06:07:01 (GMT) |
commit | 31ef93f19ff9c1529024ab5e9b82143b99ef1c70 (patch) | |
tree | 26592baa0c0bdf2596fa3cdd1c7eb6edf0bb2542 /Modules/FetchContent.cmake | |
parent | 3f41c0a12ad885102ae1bb1ab8cee444ad049040 (diff) | |
download | CMake-31ef93f19ff9c1529024ab5e9b82143b99ef1c70.zip CMake-31ef93f19ff9c1529024ab5e9b82143b99ef1c70.tar.gz CMake-31ef93f19ff9c1529024ab5e9b82143b99ef1c70.tar.bz2 |
FetchContent: Only use @-@ replacements for sub-build CMakeLists.txt
There was a mix of ${} and @-@ substitutions in the CMakeLists.txt.in
file. It is sometimes useful to temporarily put ${} evaluations there while
working on issues, but they get replaced. Using @ONLY leaves them
untouched and uses a consistent substitution method for the whole file.
Diffstat (limited to 'Modules/FetchContent.cmake')
-rw-r--r-- | Modules/FetchContent.cmake | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Modules/FetchContent.cmake b/Modules/FetchContent.cmake index 8afb9bc..153563f 100644 --- a/Modules/FetchContent.cmake +++ b/Modules/FetchContent.cmake @@ -1596,7 +1596,9 @@ set_property(GLOBAL PROPERTY _CMAKE_FindGit_GIT_EXECUTABLE_VERSION # has this set to something not findable on the PATH. We also ensured above # that the Debug config will be defined for multi-config generators. configure_file("${CMAKE_CURRENT_FUNCTION_LIST_DIR}/FetchContent/CMakeLists.cmake.in" - "${ARG_SUBBUILD_DIR}/CMakeLists.txt") + "${ARG_SUBBUILD_DIR}/CMakeLists.txt" + @ONLY + ) execute_process( COMMAND ${CMAKE_COMMAND} ${subCMakeOpts} . RESULT_VARIABLE result |