Remember to surround the other deprecated test in the Borland check.

This commit is contained in:
Stephen Kelly 2011-08-11 00:19:20 +02:00
parent 3f7e03643d
commit 1c6b41bee7
1 changed files with 4 additions and 1 deletions

View File

@ -11,5 +11,8 @@ static_build_pass("Libstatic l; return l.libstatic_exported();" "Failed to build
if (NOT ${CMAKE_CXX_COMPILER_ID} MATCHES Borland) if (NOT ${CMAKE_CXX_COMPILER_ID} MATCHES Borland)
static_build_fail("Libstatic l; return l.libstatic_deprecated();" "Built use of deprecated class method. This should not be possible.") 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()
static_build_pass("Libstatic l; return l.libstatic_deprecated();" "Built use of deprecated class method. This should not be possible.")
static_build_pass("libstatic_deprecated();" "Built use of deprecated function. This should not be possible.")
endif() endif()
static_build_fail("libstatic_deprecated();" "Built use of deprecated function. This should not be possible.")