Skip to content

Commit

Permalink
FindACE: Restore ACE_HAS_STRING_HASH deprecated variable (always true)
Browse files Browse the repository at this point in the history
Also add deprecation warnings when using a deprecated variable
  • Loading branch information
drdanz committed Dec 13, 2017
1 parent f64d712 commit 85bf58f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions find-modules/FindACE.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -242,10 +242,20 @@ endif()

########################################################################
## Compatibility with older versions

function(_FindACE_Deprecated _variable _access _value _current_list_file _stack)
message(DEPRECATION "${_variable} is deprecated")
endfunction()

set(ACE_LIBRARY_RELEASE ${ACE_ACE_LIBRARY_RELEASE})
set(ACE_LIBRARY_DEBUG ${ACE_ACE_LIBRARY_DEBUG})
set(ACE_LIBRARY ${ACE_ACE_LIBRARY})
set(ACE_HAS_STRING_HASH 1)

variable_watch(ACE_LIBRARY_RELEASE _FindACE_Deprecated)
variable_watch(ACE_LIBRARY_DEBUG _FindACE_Deprecated)
variable_watch(ACE_LIBRARY _FindACE_Deprecated)
variable_watch(ACE_HAS_STRING_HASH _FindACE_Deprecated)

########################################################################
# Set package properties if FeatureSummary was included
Expand Down

0 comments on commit 85bf58f

Please sign in to comment.