From 21c4fe80cfa32c79db2650ebe1010d9bac192129 Mon Sep 17 00:00:00 2001 From: Stephen G Tuggy Date: Sat, 21 Dec 2024 20:18:04 -0800 Subject: [PATCH] Update CMakeLists.txt --- engine/CMakeLists.txt | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/engine/CMakeLists.txt b/engine/CMakeLists.txt index 910df8b76..66a2dfd4b 100644 --- a/engine/CMakeLists.txt +++ b/engine/CMakeLists.txt @@ -116,6 +116,11 @@ SET(VEGASTRIKE_ASSETS_API_VERSION "3") #IF (POLICY CMP0091) # CMAKE_POLICY (SET CMP0091 NEW) #ENDIF () +# +## Use old behavior for Boost detection. Applies to CMake 3.30 and up +IF (POLICY CMP0167) + CMAKE_POLICY (SET CMP0167 OLD) +ENDIF () PROJECT(Vega_Strike VERSION @@ -155,6 +160,10 @@ UNSET(FFMPEG_FOUND) UNSET(OGRE_FOUND) UNSET(Boost_DIR) +IF (CMAKE_SYSTEM_NAME STREQUAL Darwin) + SET(CMAKE_SHARED_LIBRARY_SUFFIX ".so") +ENDIF () + SET(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$:Debug>DLL") SET(CMAKE_INSTALL_UCRT_LIBRARIES TRUE) INCLUDE(InstallRequiredSystemLibraries)