mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-06 14:19:59 -05:00
Split the deprecated available check from setting macro values.
This commit is contained in:
@@ -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.")
|
||||
|
||||
Reference in New Issue
Block a user