[cmake] FindFeature use same case for `_FOUND`

This commit is contained in:
Armin Novak 2023-12-14 14:01:39 +01:00 committed by akallabeth
parent 520e3a39e4
commit c2f4491644
1 changed files with 2 additions and 2 deletions

View File

@ -46,9 +46,9 @@ macro(find_feature _feature _type _purpose _description)
endif()
if(NOT ${${_feature_upper}_FOUND})
if(NOT ${${_feature}_FOUND})
if(${_feature_default})
message(WARNING " feature ${_feature} was requested but could not be found! ${_feature_default} / ${${_feature_upper}_FOUND}")
message(WARNING " feature ${_feature} was requested but could not be found! ${_feature_default} / ${${_feature}_FOUND}")
endif()
set(_feature_default "OFF")
endif()