mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-23 06:17:49 +08:00
23 lines
915 B
Diff
23 lines
915 B
Diff
adm/cmake/occt_defs_flags.cmake | 8 ++++++++
|
|
1 file changed, 8 insertions(+)
|
|
|
|
diff --git a/adm/cmake/occt_defs_flags.cmake b/adm/cmake/occt_defs_flags.cmake
|
|
index 5484c67..203ca6b 100644
|
|
--- a/adm/cmake/occt_defs_flags.cmake
|
|
+++ b/adm/cmake/occt_defs_flags.cmake
|
|
@@ -16,6 +16,14 @@ if (MSVC)
|
|
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /fp:precise")
|
|
endif()
|
|
|
|
+# Turn off the "improved inline analyzer" that stalls on x86 release builds using MSVC 16.7 for 32-bit
|
|
+if (NOT CMAKE_SIZEOF_VOID_P EQUAL 8)
|
|
+ if (MSVC)
|
|
+ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /d2DeepThoughtInliner-")
|
|
+ set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /d2DeepThoughtInliner-")
|
|
+ endif()
|
|
+endif()
|
|
+
|
|
# add SSE2 option for old MSVC compilers (VS 2005 - 2010, 32 bit only)
|
|
if (NOT CMAKE_SIZEOF_VOID_P EQUAL 8)
|
|
if (MSVC AND ((MSVC_VERSION EQUAL 1400) OR (MSVC_VERSION EQUAL 1500) OR (MSVC_VERSION EQUAL 1600)))
|