From: Vladislav Shchapov Date: Thu, 5 May 2022 11:51:17 +0000 (+0500) Subject: The names CMAKE_INTERPROCEDURAL_OPTIMIZATION_* must be uppercase. X-Git-Tag: 2.0.7~50 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=bc73a50decbaa98334625b6450e376939e4a9869;p=thirdparty%2Fzlib-ng.git The names CMAKE_INTERPROCEDURAL_OPTIMIZATION_* must be uppercase. Signed-off-by: Vladislav Shchapov --- diff --git a/CMakeLists.txt b/CMakeLists.txt index aaf1424b..d65de6de 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -280,7 +280,8 @@ endif() if(NOT WITH_NATIVE_INSTRUCTIONS) set(CMAKE_INTERPROCEDURAL_OPTIMIZATION OFF) foreach(_cfg_name IN LISTS CMAKE_CONFIGURATION_TYPES) - set(CMAKE_INTERPROCEDURAL_OPTIMIZATION_${_cfg_name} OFF) + string(TOUPPER "${_cfg_name}" _cfg_name_uc) + set(CMAKE_INTERPROCEDURAL_OPTIMIZATION_${_cfg_name_uc} OFF) endforeach() endif()