summaryrefslogtreecommitdiffstats
path: root/Tests/Module/GenerateExportHeader/libsharedtest
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2011-08-11 16:17:12 (GMT)
committerStephen Kelly <steveire@gmail.com>2011-08-11 16:17:12 (GMT)
commit9554e1013ef5d9971092ed0cd45daf59b8a6bd87 (patch)
tree586fd50f5b2df1590506a2ebc920ed3395b9a661 /Tests/Module/GenerateExportHeader/libsharedtest
parent1590d5fe4f95a800635ba9078e822d742a96dc18 (diff)
downloadCMake-9554e1013ef5d9971092ed0cd45daf59b8a6bd87.zip
CMake-9554e1013ef5d9971092ed0cd45daf59b8a6bd87.tar.gz
CMake-9554e1013ef5d9971092ed0cd45daf59b8a6bd87.tar.bz2
Split the deprecated available check from setting macro values.
Diffstat (limited to 'Tests/Module/GenerateExportHeader/libsharedtest')
-rw-r--r--Tests/Module/GenerateExportHeader/libsharedtest/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tests/Module/GenerateExportHeader/libsharedtest/CMakeLists.txt b/Tests/Module/GenerateExportHeader/libsharedtest/CMakeLists.txt
index 9edc53f..b763036 100644
--- a/Tests/Module/GenerateExportHeader/libsharedtest/CMakeLists.txt
+++ b/Tests/Module/GenerateExportHeader/libsharedtest/CMakeLists.txt
@@ -9,7 +9,7 @@ endmacro()
shared_build_pass("Libshared l; return l.libshared_exported();" "Failed to build exported")
-if (NOT ${CMAKE_CXX_COMPILER_ID} MATCHES Borland)
+if (COMPILER_HAS_DEPRECATED)
shared_build_fail("Libshared l; return l.libshared_deprecated();" "Built use of deprecated class method. This should not be possible.")
else()
shared_build_pass("Libshared l; return l.libshared_deprecated();" "Built use of deprecated class method. This should not be possible.")