summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2023-05-12 13:26:39 (GMT)
committerKitware Robot <kwrobot@kitware.com>2023-05-12 13:26:56 (GMT)
commit4a1421efad46b4cbbb5b860f77dae44c9812b552 (patch)
tree2e27080ae8c5559258be1f798fcfbc83a8168866 /Tests
parent2b086065114049a7b5e18ead441b5b8ae6fc7ba0 (diff)
parentad9020a89922eff4b817ba6278d31a412cc17601 (diff)
downloadCMake-4a1421efad46b4cbbb5b860f77dae44c9812b552.zip
CMake-4a1421efad46b4cbbb5b860f77dae44c9812b552.tar.gz
CMake-4a1421efad46b4cbbb5b860f77dae44c9812b552.tar.bz2
Merge topic 'system-framework'
ad9020a899 Apple Frameworks: honor SYSTEM target property Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !8469
Diffstat (limited to 'Tests')
-rw-r--r--Tests/RunCMake/Framework/FrameworkSystemIncludeTest.cmake12
1 files changed, 12 insertions, 0 deletions
diff --git a/Tests/RunCMake/Framework/FrameworkSystemIncludeTest.cmake b/Tests/RunCMake/Framework/FrameworkSystemIncludeTest.cmake
index d172281..bcf6c29 100644
--- a/Tests/RunCMake/Framework/FrameworkSystemIncludeTest.cmake
+++ b/Tests/RunCMake/Framework/FrameworkSystemIncludeTest.cmake
@@ -10,3 +10,15 @@ set_target_properties(Example::Example PROPERTIES
add_library(testcase FrameworkSystemIncludeTest.c)
target_compile_options(testcase PRIVATE "-Werror=#pragma-messages")
target_link_libraries(testcase PRIVATE Example::Example)
+
+
+
+add_library(Example::Example2 SHARED IMPORTED)
+set_target_properties(Example::Example2 PROPERTIES
+ FRAMEWORK 1
+ IMPORTED_LOCATION "${CMAKE_CURRENT_SOURCE_DIR}/subdir/Example.framework/Example.tbd"
+)
+
+add_library(testcase2 FrameworkSystemIncludeTest.c)
+target_compile_options(testcase2 PRIVATE "-Werror=#pragma-messages")
+target_link_libraries(testcase2 PRIVATE Example::Example2)