We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eeaddad commit 9e7dbbcCopy full SHA for 9e7dbbc
scripts/CheckCXX11Features.cmake
@@ -118,7 +118,8 @@ function(parse_input_features ALLFEATURES OPTIONALS REQUIRED ERRORS)
118
set(UNKNOWN_FEATURES)
119
set(result_type OPTIONAL_FEATURES)
120
foreach(feature ${ARGN})
121
- if(${feature} STREQUAL "REQUIRED")
+ string(COMPARE EQUAL "${feature}" "REQUIRED" avoid_cmake_warning)
122
+ if(avoid_cmake_warning)
123
set(result_type REQUIRED_FEATURES)
124
else()
125
list(FIND ALLFEATURES ${feature} feature_was_found)
@@ -128,8 +129,7 @@ function(parse_input_features ALLFEATURES OPTIONALS REQUIRED ERRORS)
128
129
130
list(APPEND ${result_type} ${feature})
131
endif()
-
132
- endif(${feature} STREQUAL "REQUIRED")
+ endif()
133
endforeach()
134
135
set(${OPTIONALS} ${OPTIONAL_FEATURES} PARENT_SCOPE)
0 commit comments