Windows: Suppressing the Warning When Linking (#15943)

This commit is contained in:
江战
2023-08-14 11:40:13 +08:00
committed by GitHub
parent 6d04a1477a
commit ac4fa74624
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -3105,6 +3105,11 @@ if(MSVC)
/wd4098 # defaultlib conflicts
/wd4099 # PDB 'filename' was not found with 'object/library' or at 'path'; linking object as if no debug info
)
target_link_options(${ENGINE_NAME} PUBLIC
/ignore:4099 # PDB 'filename' was not found with 'object/library' or at 'path'; linking object as if no debug info
/ignore:4098 # defaultlib 'library' conflicts with use of other libs; use /NODEFAULTLIB:library
/ignore:4204 # 'filename' is missing debugging information for referencing module; linking object as if no debug info
)
endif()
if(CC_USE_VULKAN)
+1 -1
View File
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.8)
cmake_minimum_required(VERSION 3.18)
set(APP_NAME "CocosGame" CACHE STRING "Project Name")
project(${APP_NAME} CXX)