Skip to content

Commit a790483

Browse files
committed
cmake: Fix windows LNK1189 error (#4627)
1 parent 5ed3407 commit a790483

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
@@ -110,6 +110,7 @@ if(MSVC)
110110
"/D_CRT_SECURE_NO_WARNINGS"
111111
"/D_CRT_SECURE_NO_DEPRECATE"
112112
"/MP" # Build with multiple processes
113+
"/Zc:inline" # Remove unreferenced COMDAT
113114
"/Zc:preprocessor" # Enable preprocessor conformance mode
114115
"/fp:precise"
115116
)

0 commit comments

Comments
 (0)