[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

View File

@ -46,9 +46,9 @@ macro(find_feature _feature _type _purpose _description)
endif() endif()
if(NOT ${${_feature_upper}_FOUND}) if(NOT ${${_feature}_FOUND})
if(${_feature_default}) 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() endif()
set(_feature_default "OFF") set(_feature_default "OFF")
endif() endif()