From 1bc62595e1b73e905e9b39a61ff3628655cfe07d Mon Sep 17 00:00:00 2001 From: bjorn Date: Sat, 21 Oct 2017 21:51:39 -0700 Subject: [PATCH] Suppress warnings about loss of precision in win32; --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index b5bcfddb..71e7e3a7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -309,6 +309,9 @@ target_link_libraries(lovr ) if(WIN32) + # Disable warnings about loss of precision for lua_Number + set_target_properties(lovr PROPERTIES COMPILE_FLAGS "/wd4244") + function(move_dll ARG_TARGET) add_custom_command(TARGET lovr POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy