Test INTERPROCEDURAL_OPTIMIZATION build feature

This creates an "IPO" test that builds some other tests as subdirectories
while enabling INTERPROCEDURAL_OPTIMIZATION.  See issue #9615.
This commit is contained in:
Brad King 2009-10-02 13:52:29 -04:00
parent c513962701
commit b4ace1cca0
2 changed files with 8 additions and 0 deletions

View File

@ -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)

7
Tests/IPO/CMakeLists.txt Normal file
View File

@ -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)