Fixup forgotten part of aed84517c9

This commit is contained in:
Stephen Kelly 2011-08-14 15:37:24 +02:00
parent 2aeab4f973
commit 97392a7dd3
1 changed files with 3 additions and 3 deletions

View File

@ -178,10 +178,10 @@ macro(_DO_SET_MACRO_VALUES TARGET_LIBRARY)
set(DEFINE_IMPORT)
set(DEFINE_NO_EXPORT)
if (COMPILER_HAS_DEPRECATED_DECLSPEC)
set(DEFINE_DEPRECATED "__declspec(deprecated)")
elseif(COMPILER_HAS_DEPRECATED)
if (COMPILER_HAS_DEPRECATED_ATTR)
set(DEFINE_DEPRECATED "__attribute__ ((__deprecated__))")
elseif(COMPILER_HAS_DEPRECATED)
set(DEFINE_DEPRECATED "__declspec(deprecated)")
endif()
get_property(type TARGET ${TARGET_LIBRARY} PROPERTY TYPE)