mirror of
				https://github.com/DarkflameUniverse/DarkflameServer.git
				synced 2025-11-04 06:32:00 +00:00 
			
		
		
		
	trying 'init' flags instead
This commit is contained in:
		@@ -70,7 +70,7 @@ if(UNIX)
 | 
				
			|||||||
	set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99 -O2 -fPIC")
 | 
						set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99 -O2 -fPIC")
 | 
				
			||||||
elseif(MSVC)
 | 
					elseif(MSVC)
 | 
				
			||||||
	# Skip warning for invalid conversion from size_t to uint32_t for all targets below for now
 | 
						# Skip warning for invalid conversion from size_t to uint32_t for all targets below for now
 | 
				
			||||||
	set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /permissive- /Zc:inline")
 | 
						set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
 | 
				
			||||||
	add_compile_options ("/wd4267" "/utf-8")
 | 
						add_compile_options ("/wd4267" "/utf-8")
 | 
				
			||||||
elseif(WIN32)
 | 
					elseif(WIN32)
 | 
				
			||||||
	add_compile_definitions(_CRT_SECURE_NO_WARNINGS)
 | 
						add_compile_definitions(_CRT_SECURE_NO_WARNINGS)
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -35,7 +35,8 @@
 | 
				
			|||||||
          "value": "x64"
 | 
					          "value": "x64"
 | 
				
			||||||
        },
 | 
					        },
 | 
				
			||||||
        "cacheVariables": { 
 | 
					        "cacheVariables": { 
 | 
				
			||||||
          "CMAKE_BUILD_TYPE": "RelWithDebInfo"
 | 
					          "CMAKE_BUILD_TYPE": "Release",
 | 
				
			||||||
 | 
					          "CMAKE_CXX_FLAGS_INIT": "/W3 /Zc:inline"
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
      },
 | 
					      },
 | 
				
			||||||
      {
 | 
					      {
 | 
				
			||||||
@@ -63,7 +64,7 @@
 | 
				
			|||||||
        "configurePreset": "ci-windows-2022",
 | 
					        "configurePreset": "ci-windows-2022",
 | 
				
			||||||
        "displayName": "Windows CI Build",
 | 
					        "displayName": "Windows CI Build",
 | 
				
			||||||
        "description": "This preset is used by the CI build on windows",
 | 
					        "description": "This preset is used by the CI build on windows",
 | 
				
			||||||
        "configuration": "RelWithDebInfo",
 | 
					        "configuration": "Release",
 | 
				
			||||||
        "jobs": 2
 | 
					        "jobs": 2
 | 
				
			||||||
      },
 | 
					      },
 | 
				
			||||||
      {
 | 
					      {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user