Borland can't do deprecated.

This commit is contained in:
Stephen Kelly 2011-08-13 23:30:35 +02:00
parent c41c68bfa4
commit 2aeab4f973

View File

@ -158,12 +158,16 @@ macro(_test_compiler_hidden_visibility)
endmacro() endmacro()
macro(_test_compiler_has_deprecated) macro(_test_compiler_has_deprecated)
if("${CMAKE_CXX_COMPILER_ID}" MATCHES Borland)
set(COMPILER_HAS_DEPRECATED "" CACHE INTERNAL "Compiler support for a deprecated attribute")
else()
_check_cxx_compiler_attribute("__attribute__((__deprecated__))" COMPILER_HAS_DEPRECATED_ATTR) _check_cxx_compiler_attribute("__attribute__((__deprecated__))" COMPILER_HAS_DEPRECATED_ATTR)
if(COMPILER_HAS_DEPRECATED_ATTR) if(COMPILER_HAS_DEPRECATED_ATTR)
set(COMPILER_HAS_DEPRECATED "${COMPILER_HAS_DEPRECATED_ATTR}" CACHE INTERNAL "Compiler support for a deprecated attribute") set(COMPILER_HAS_DEPRECATED "${COMPILER_HAS_DEPRECATED_ATTR}" CACHE INTERNAL "Compiler support for a deprecated attribute")
else() else()
_check_cxx_compiler_attribute("__declspec(deprecated)" COMPILER_HAS_DEPRECATED) _check_cxx_compiler_attribute("__declspec(deprecated)" COMPILER_HAS_DEPRECATED)
endif() endif()
endif()
endmacro() endmacro()
set(myDir ${CMAKE_CURRENT_LIST_DIR}) set(myDir ${CMAKE_CURRENT_LIST_DIR})