summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-10-02 17:52:29 (GMT)
committerBrad King <brad.king@kitware.com>2009-10-02 17:52:29 (GMT)
commitb4ace1cca0c3e0c77e7c66d7a2cb6d7fb6be7258 (patch)
tree221884f07261a7fdb6bd1636c1c0a0c1a9eb4291
parentc513962701dd6fbab8113ae104deb0eaa76a16e1 (diff)
downloadCMake-b4ace1cca0c3e0c77e7c66d7a2cb6d7fb6be7258.zip
CMake-b4ace1cca0c3e0c77e7c66d7a2cb6d7fb6be7258.tar.gz
CMake-b4ace1cca0c3e0c77e7c66d7a2cb6d7fb6be7258.tar.bz2
Test INTERPROCEDURAL_OPTIMIZATION build feature
This creates an "IPO" test that builds some other tests as subdirectories while enabling INTERPROCEDURAL_OPTIMIZATION. See issue #9615.
-rw-r--r--Tests/CMakeLists.txt1
-rw-r--r--Tests/IPO/CMakeLists.txt7
2 files changed, 8 insertions, 0 deletions
diff --git a/Tests/CMakeLists.txt b/Tests/CMakeLists.txt
index 4fdd286..e87fd8c 100644
--- a/Tests/CMakeLists.txt
+++ b/Tests/CMakeLists.txt
@@ -108,6 +108,7 @@ IF(BUILD_TESTING)
ADD_TEST_MACRO(PreOrder PreOrder)
ADD_TEST_MACRO(COnly COnly)
ADD_TEST_MACRO(CxxOnly CxxOnly)
+ ADD_TEST_MACRO(IPO COnly/COnly)
ADD_TEST_MACRO(NewlineArgs NewlineArgs)
ADD_TEST_MACRO(SetLang SetLang)
ADD_TEST_MACRO(ExternalOBJ ExternalOBJ)
diff --git a/Tests/IPO/CMakeLists.txt b/Tests/IPO/CMakeLists.txt
new file mode 100644
index 0000000..595e4f5
--- /dev/null
+++ b/Tests/IPO/CMakeLists.txt
@@ -0,0 +1,7 @@
+cmake_minimum_required (VERSION 2.8)
+project(IPO NONE)
+
+SET_PROPERTY(DIRECTORY PROPERTY INTERPROCEDURAL_OPTIMIZATION 1)
+
+add_subdirectory(../COnly COnly)
+add_subdirectory(../CxxOnly CxxOnly)