mirror of https://github.com/bjornbytes/lovr.git
Windows yells at ode less;
This commit is contained in:
parent
b32244b787
commit
fdfc63db63
|
@ -153,7 +153,10 @@ if(LOVR_ENABLE_PHYSICS)
|
|||
set(ODE_BUILD_SHARED ON CACHE BOOL "")
|
||||
endif()
|
||||
add_subdirectory(deps/ode ode)
|
||||
if(NOT WIN32)
|
||||
if(MSVC)
|
||||
set_target_properties(ode PROPERTIES COMPILE_FLAGS "/wd4244 /wd4267")
|
||||
target_compile_definitions(ode PRIVATE _CRT_SECURE_NO_WARNINGS)
|
||||
else()
|
||||
set_target_properties(ode PROPERTIES COMPILE_FLAGS "-Wno-unused-volatile-lvalue -Wno-array-bounds -Wno-undefined-var-template")
|
||||
endif()
|
||||
include_directories(deps/ode/include "${CMAKE_CURRENT_BINARY_DIR}/ode/include")
|
||||
|
|
Loading…
Reference in New Issue