From c5ece265e9e2d9623921eb9d86590acb182a7484 Mon Sep 17 00:00:00 2001 From: f4exb Date: Sat, 10 Apr 2021 12:21:27 +0200 Subject: [PATCH] Do not enable interprocedural optimization for Mac. Fixes #807 --- cmake/Modules/CompilerOptions.cmake | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/cmake/Modules/CompilerOptions.cmake b/cmake/Modules/CompilerOptions.cmake index 5865b90b3..ce1a866dc 100644 --- a/cmake/Modules/CompilerOptions.cmake +++ b/cmake/Modules/CompilerOptions.cmake @@ -2,7 +2,12 @@ include_guard(GLOBAL) include(DetectArchitecture) -set(CMAKE_INTERPROCEDURAL_OPTIMIZATION ON) +if (NOT APPLE) + set(CMAKE_INTERPROCEDURAL_OPTIMIZATION ON) + message(STATUS "Interprocedural optimization enabled") +else() + message(STATUS "Interprocedural optimization is disabled for Mac OS") +endif() if(WIN32) add_compile_definitions(