mirror of
https://github.com/gnif/LookingGlass.git
synced 2026-11-13 15:27:21 +00:00
[client] windows: use precise math for input validation
This commit is contained in:
@@ -8,6 +8,16 @@ add_library(displayserver_Windows STATIC
|
||||
windows.c
|
||||
)
|
||||
|
||||
if(MSVC)
|
||||
set_source_files_properties(input_event.c PROPERTIES
|
||||
COMPILE_OPTIONS "/fp:precise"
|
||||
)
|
||||
elseif(CMAKE_C_COMPILER_ID MATCHES "GNU|Clang")
|
||||
set_source_files_properties(input_event.c PROPERTIES
|
||||
COMPILE_OPTIONS "-fno-fast-math"
|
||||
)
|
||||
endif()
|
||||
|
||||
target_compile_definitions(displayserver_Windows PRIVATE
|
||||
WINVER=0x0A00
|
||||
_WIN32_WINNT=0x0A00
|
||||
|
||||
Reference in New Issue
Block a user