summaryrefslogtreecommitdiff
path: root/cmake/libutils.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/libutils.cmake')
-rw-r--r--cmake/libutils.cmake7
1 files changed, 6 insertions, 1 deletions
diff --git a/cmake/libutils.cmake b/cmake/libutils.cmake
index 4c8401971f6..f618c1e1ff4 100644
--- a/cmake/libutils.cmake
+++ b/cmake/libutils.cmake
@@ -369,6 +369,11 @@ ENDFUNCTION()
FUNCTION (MAYBE_DISABLE_IPO target)
IF(MSVC AND NOT CLANG_CL)
- SET_TARGET_PROPERTIES(${target} PROPERTIES INTERPROCEDURAL_OPTIMIZATION OFF)
+ SET_TARGET_PROPERTIES(${target} PROPERTIES
+ INTERPROCEDURAL_OPTIMIZATION OFF
+ INTERPROCEDURAL_OPTIMIZATION_DEBUG OFF
+ INTERPROCEDURAL_OPTIMIZATION_RELEASE OFF
+ INTERPROCEDURAL_OPTIMIZATION_RELWITHDEBINFO OFF
+ INTERPROCEDURAL_OPTIMIZATION_MINSIZEREL OFF)
ENDIF()
ENDFUNCTION()