Merge pull request 'Some VSync fixes and improvements' (#80) from vsync_fixes into master

Reviewed-on: https://git.madvoxel.net/OpenVulkano/OpenVulkano/pulls/80
Reviewed-by: Georg Hagen <georg.hagen@madvoxel.com>
This commit is contained in:
Oleksii_Hyzha
2024-07-24 01:15:39 +02:00
9 changed files with 65 additions and 36 deletions

View File

@@ -15,6 +15,11 @@ endfunction()
function(SetWarningSettings TARGET)
if (LINUX)
target_compile_options(${TARGET} PRIVATE -Wall -Wno-unknown-pragmas)
elseif (WIN32)
if (MSVC)
set_target_properties(${TARGET} PROPERTIES COMPILE_FLAGS "/wd4068")
set_target_properties(${TARGET} PROPERTIES LINK_FLAGS "/ignore:4099")
endif()
endif()
endfunction()