瀏覽代碼

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

Jeff Bolz 11 月之前
父節點
當前提交
f35726c2fb
共有 1 個文件被更改,包括 2 次插入1 次删除
  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()
 
 #