Skip to content

Commit 88ed2c1

Browse files
committed
cmake: Fix windows LNK1189 error (#4627)
1 parent f5dea67 commit 88ed2c1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cmake/cpp.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ if(MSVC)
106106
"/D_CRT_SECURE_NO_WARNINGS"
107107
"/D_CRT_SECURE_NO_DEPRECATE"
108108
"/MP" # Build with multiple processes
109+
"/Zc:inline" # Remove unreferenced COMDAT
109110
"/Zc:preprocessor" # Enable preprocessor conformance mode
110111
"/fp:precise"
111112
)

0 commit comments

Comments
 (0)