summaryrefslogtreecommitdiffstats
path: root/Tests/IPO
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 /Tests/IPO
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.
Diffstat (limited to 'Tests/IPO')
-rw-r--r--Tests/IPO/CMakeLists.txt7
1 files changed, 7 insertions, 0 deletions
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)