diff --git a/CMakeLists.txt b/CMakeLists.txt index 6871693..6b5a69b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -27,7 +27,7 @@ if(NOT DEFINED CMAKE_BUILD_TYPE) set(CMAKE_BUILD_TYPE Release) endif() -if(NOT (CMAKE_BUILD_TYPE STREQUAL "Debug")) +if(NOT (CMAKE_BUILD_TYPE STREQUAL "Debug") AND BUILD_SHARED_LIBS) set(CMAKE_INTERPROCEDURAL_OPTIMIZATION ON) endif()