diff options
| author | Stephen Kelly <steveire@gmail.com> | 2011-08-11 16:17:12 (GMT) |
|---|---|---|
| committer | Stephen Kelly <steveire@gmail.com> | 2011-08-11 16:17:12 (GMT) |
| commit | 9554e1013ef5d9971092ed0cd45daf59b8a6bd87 (patch) | |
| tree | 586fd50f5b2df1590506a2ebc920ed3395b9a661 /Tests/Module/GenerateExportHeader/libstatictest | |
| parent | 1590d5fe4f95a800635ba9078e822d742a96dc18 (diff) | |
| download | CMake-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/libstatictest')
| -rw-r--r-- | Tests/Module/GenerateExportHeader/libstatictest/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Tests/Module/GenerateExportHeader/libstatictest/CMakeLists.txt b/Tests/Module/GenerateExportHeader/libstatictest/CMakeLists.txt index 168cae8..14ca05b 100644 --- a/Tests/Module/GenerateExportHeader/libstatictest/CMakeLists.txt +++ b/Tests/Module/GenerateExportHeader/libstatictest/CMakeLists.txt @@ -9,7 +9,7 @@ endmacro() static_build_pass("Libstatic l; return l.libstatic_exported();" "Failed to build exported.") -if (NOT ${CMAKE_CXX_COMPILER_ID} MATCHES Borland) +if (COMPILER_HAS_DEPRECATED) static_build_fail("Libstatic l; return l.libstatic_deprecated();" "Built use of deprecated class method. This should not be possible.") static_build_fail("libstatic_deprecated();" "Built use of deprecated function. This should not be possible.") else() |
