summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-01-29 17:53:30 (GMT)
committerBrad King <brad.king@kitware.com>2019-01-29 17:53:30 (GMT)
commit17b1d7995efb14e14b15926dbb5fc530b71ed149 (patch)
tree7cf3ad0ee10234edaf52bd5399670c043ad7a93d /Tests
parenta57fcfa3e0989a74d1e1c6c24132e285cdace2b1 (diff)
parentd9dd68cb60ed09e32cbda8bbd3e31c86a8778e66 (diff)
downloadCMake-17b1d7995efb14e14b15926dbb5fc530b71ed149.zip
CMake-17b1d7995efb14e14b15926dbb5fc530b71ed149.tar.gz
CMake-17b1d7995efb14e14b15926dbb5fc530b71ed149.tar.bz2
Merge branch 'backport-restore-install-late-framework' into release-3.13
Merge-request: !2878
Diffstat (limited to 'Tests')
-rw-r--r--Tests/RunCMake/Framework/InstallBeforeFramework.cmake5
-rw-r--r--Tests/RunCMake/Framework/RunCMakeTest.cmake2
2 files changed, 7 insertions, 0 deletions
diff --git a/Tests/RunCMake/Framework/InstallBeforeFramework.cmake b/Tests/RunCMake/Framework/InstallBeforeFramework.cmake
new file mode 100644
index 0000000..3791dac
--- /dev/null
+++ b/Tests/RunCMake/Framework/InstallBeforeFramework.cmake
@@ -0,0 +1,5 @@
+enable_language(C)
+
+add_library(foo SHARED foo.c)
+install(TARGETS foo LIBRARY DESTINATION lib)
+set_property(TARGET foo PROPERTY FRAMEWORK TRUE)
diff --git a/Tests/RunCMake/Framework/RunCMakeTest.cmake b/Tests/RunCMake/Framework/RunCMakeTest.cmake
index 4fc83f8..e705a31 100644
--- a/Tests/RunCMake/Framework/RunCMakeTest.cmake
+++ b/Tests/RunCMake/Framework/RunCMakeTest.cmake
@@ -1,5 +1,7 @@
include(RunCMake)
+run_cmake(InstallBeforeFramework)
+
function(framework_layout_test Name Toolchain Type)
set(RunCMake_TEST_BINARY_DIR ${RunCMake_BINARY_DIR}/${Toolchain}${Type}FrameworkLayout-build)
set(RunCMake_TEST_NO_CLEAN 1)