Skip to content

Commit ea2fdc1

Browse files
committed
The names CMAKE_INTERPROCEDURAL_OPTIMIZATION_* must be uppercase.
Signed-off-by: Vladislav Shchapov <vladislav@shchapov.ru>
1 parent f8a7f26 commit ea2fdc1

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,8 @@ endif()
255255
if(NOT WITH_NATIVE_INSTRUCTIONS)
256256
set(CMAKE_INTERPROCEDURAL_OPTIMIZATION OFF)
257257
foreach(_cfg_name IN LISTS CMAKE_CONFIGURATION_TYPES)
258-
set(CMAKE_INTERPROCEDURAL_OPTIMIZATION_${_cfg_name} OFF)
258+
string(TOUPPER "${_cfg_name}" _cfg_name_uc)
259+
set(CMAKE_INTERPROCEDURAL_OPTIMIZATION_${_cfg_name_uc} OFF)
259260
endforeach()
260261
endif()
261262

0 commit comments

Comments
 (0)