mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-21 17:39:40 +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:
commit
b68305e3e2
1 changed files with 7 additions and 3 deletions
10
extern/CMakeLists.txt
vendored
10
extern/CMakeLists.txt
vendored
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue