summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2023-09-25 22:03:47 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2023-09-25 22:14:53 (GMT)
commit6b940dc5906236605a1a55cd298b4e59b18e1f31 (patch)
treee9a61a4b8db23db86bb056a5c78e9c7214570c74
parent1c9f83c8ec31b523efc2ea97bfca239faaf808d2 (diff)
downloadCMake-6b940dc5906236605a1a55cd298b4e59b18e1f31.zip
CMake-6b940dc5906236605a1a55cd298b4e59b18e1f31.tar.gz
CMake-6b940dc5906236605a1a55cd298b4e59b18e1f31.tar.bz2
Tests/CXXModules: replace the object extension as well
-rw-r--r--Tests/RunCMake/CXXModules/check-json.cmake1
-rw-r--r--Tests/RunCMake/CXXModules/compiler_introspection.cmake1
2 files changed, 2 insertions, 0 deletions
diff --git a/Tests/RunCMake/CXXModules/check-json.cmake b/Tests/RunCMake/CXXModules/check-json.cmake
index 0790b6b..455ebea 100644
--- a/Tests/RunCMake/CXXModules/check-json.cmake
+++ b/Tests/RunCMake/CXXModules/check-json.cmake
@@ -15,6 +15,7 @@ function (json_placeholders in out)
endif ()
string(REPLACE "<SOURCE_DIR>" "${RunCMake_SOURCE_DIR}" in "${in}")
string(REPLACE "<BINARY_DIR>" "${RunCMake_TEST_BINARY_DIR}" in "${in}")
+ string(REPLACE "<OBJEXT>" "${CMAKE_CXX_OUTPUT_EXTENSION}" in "${in}")
set("${out}" "${in}" PARENT_SCOPE)
endfunction ()
diff --git a/Tests/RunCMake/CXXModules/compiler_introspection.cmake b/Tests/RunCMake/CXXModules/compiler_introspection.cmake
index 0e61383..50644ff 100644
--- a/Tests/RunCMake/CXXModules/compiler_introspection.cmake
+++ b/Tests/RunCMake/CXXModules/compiler_introspection.cmake
@@ -21,6 +21,7 @@ set(CMAKE_CXX_COMPILE_FEATURES \"${CMAKE_CXX_COMPILE_FEATURES}\")
set(CMAKE_MAKE_PROGRAM \"${CMAKE_MAKE_PROGRAM}\")
set(forced_cxx_standard \"${forced_cxx_standard}\")
set(CMAKE_CXX_COMPILER_VERSION \"${CMAKE_CXX_COMPILER_VERSION}\")
+set(CMAKE_CXX_OUTPUT_EXTENSION \"${CMAKE_CXX_OUTPUT_EXTENSION}\")
")
file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/info.cmake" "${info}")