Browse Source

build: apply MSVC /bigobj option to c/cpp files only (#11423)

Jeff Bolz 11 tháng trước cách đây
mục cha
commit
f35726c2fb
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      CMakeLists.txt

+ 2 - 1
CMakeLists.txt

@@ -50,7 +50,8 @@ endif()
 if (MSVC)
     add_compile_options("$<$<COMPILE_LANGUAGE:C>:/utf-8>")
     add_compile_options("$<$<COMPILE_LANGUAGE:CXX>:/utf-8>")
-    add_compile_options(/bigobj)
+    add_compile_options("$<$<COMPILE_LANGUAGE:C>:/bigobj>")
+    add_compile_options("$<$<COMPILE_LANGUAGE:CXX>:/bigobj>")
 endif()
 
 #