summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2024-02-21 18:29:36 (GMT)
committerBrad King <brad.king@kitware.com>2024-02-21 18:29:36 (GMT)
commit0d3f35f49506c63b873c58b1433fd9f97fd82910 (patch)
treea1e9c8ba12e443105d8c52e62e58397421306814
parentedfdec287cb8864b3bc52f7578968f552fb01fdc (diff)
parentf0df692d21029326112bb91e236f2c4e9a6526a2 (diff)
downloadCMake-0d3f35f49506c63b873c58b1433fd9f97fd82910.zip
CMake-0d3f35f49506c63b873c58b1433fd9f97fd82910.tar.gz
CMake-0d3f35f49506c63b873c58b1433fd9f97fd82910.tar.bz2
Merge topic 'cxxmodules-transitive-std' into release-3.28
f0df692d21 Tests/CXXModules: test `cxx_std_20` coming from a dependency Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9276
-rw-r--r--Tests/RunCMake/CXXModules/examples/export-transitive-targets-build/CMakeLists.txt2
-rw-r--r--Tests/RunCMake/CXXModules/examples/export-transitive-targets-install/CMakeLists.txt2
2 files changed, 2 insertions, 2 deletions
diff --git a/Tests/RunCMake/CXXModules/examples/export-transitive-targets-build/CMakeLists.txt b/Tests/RunCMake/CXXModules/examples/export-transitive-targets-build/CMakeLists.txt
index 99ec585..435f949 100644
--- a/Tests/RunCMake/CXXModules/examples/export-transitive-targets-build/CMakeLists.txt
+++ b/Tests/RunCMake/CXXModules/examples/export-transitive-targets-build/CMakeLists.txt
@@ -6,6 +6,7 @@ include("${CMAKE_SOURCE_DIR}/../cxx-modules-rules.cmake")
add_library(usage_reqs INTERFACE
include/include.h
includes/includes.h)
+target_compile_features(usage_reqs INTERFACE cxx_std_20)
target_compile_definitions(usage_reqs
INTERFACE
FROM_USAGE_REQS)
@@ -32,7 +33,6 @@ target_sources(export_transitive_targets
importable.cxx
subdir/importable.cxx
)
-target_compile_features(export_transitive_targets PUBLIC cxx_std_20)
target_link_libraries(export_transitive_targets PRIVATE usage_reqs)
add_library(no_modules STATIC no_modules.cxx)
diff --git a/Tests/RunCMake/CXXModules/examples/export-transitive-targets-install/CMakeLists.txt b/Tests/RunCMake/CXXModules/examples/export-transitive-targets-install/CMakeLists.txt
index dd1eb01..f413f02 100644
--- a/Tests/RunCMake/CXXModules/examples/export-transitive-targets-install/CMakeLists.txt
+++ b/Tests/RunCMake/CXXModules/examples/export-transitive-targets-install/CMakeLists.txt
@@ -6,6 +6,7 @@ include("${CMAKE_SOURCE_DIR}/../cxx-modules-rules.cmake")
add_library(usage_reqs INTERFACE
include/include.h
includes/includes.h)
+target_compile_features(usage_reqs INTERFACE cxx_std_20)
target_compile_definitions(usage_reqs
INTERFACE
FROM_USAGE_REQS)
@@ -33,7 +34,6 @@ target_sources(export_transitive_targets
importable.cxx
subdir/importable.cxx
)
-target_compile_features(export_transitive_targets PUBLIC cxx_std_20)
target_link_libraries(export_transitive_targets PRIVATE usage_reqs)
add_library(no_modules STATIC no_modules.cxx)