1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-25 06:35:30 +00:00

Merge branch 'bullet-msvc-runtime' into 'master'

Fix FetchContent Bullet with MSVC

See merge request OpenMW/openmw!717
This commit is contained in:
psi29a 2021-04-08 10:07:01 +00:00
commit b68305e3e2

10
extern/CMakeLists.txt vendored
View File

@ -35,9 +35,13 @@ if(NOT OPENMW_USE_SYSTEM_BULLET)
set(BUILD_SHARED_LIBS OFF CACHE BOOL "" FORCE)
else()
set(BUILD_SHARED_LIBS ON CACHE BOOL "" FORCE)
if(MSVC)
set(USE_MSVC_RUNTIME_LIBRARY_DLL ON CACHE BOOL "" FORCE)
endif()
endif()
if(MSVC)
# this setting is badly named - having it off forces the static runtime library,
# but having it on does nothing, letting the defaults get used.
# OpenMW uses the defaults, and you can't mix and match.
set(USE_MSVC_RUNTIME_LIBRARY_DLL ON CACHE BOOL "" FORCE)
endif()
# master on 12 Mar 2021