Skip to content

Commit

Permalink
Re-added Boost build fixes after repo reorg
Browse files Browse the repository at this point in the history
  • Loading branch information
BrodyHiggerson committed Jul 24, 2024
1 parent e98ef26 commit 32a2cfa
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ endif()
option(SFSE_SUPPORT_XBYAK "Enables trampoline support for Xbyak." OFF)
option(SFSE_BUILD_TESTS "Builds the tests." OFF)

set(Boost_USE_STATIC_RUNTIME OFF CACHE BOOL "")

# info
project(
CommonLibSF
Expand All @@ -22,6 +24,7 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_INTERPROCEDURAL_OPTIMIZATION ON)
set(CMAKE_INTERPROCEDURAL_OPTIMIZATION_DEBUG OFF)
set(CMAKE_OPTIMIZE_DEPENDENCIES ON)
set(Boost_USE_STATIC_LIBS ON)

set_property(GLOBAL PROPERTY USE_FOLDERS ON)

Expand All @@ -34,6 +37,7 @@ endif()

# dependencies
find_package(spdlog CONFIG REQUIRED)
find_package(boost MODULE REQUIRED)

file(GLOB_RECURSE SOURCES CONFIGURE_DEPENDS
"${CMAKE_CURRENT_SOURCE_DIR}/include/*"
Expand All @@ -49,6 +53,7 @@ function(configure_target TARGET_NAME)
target_compile_definitions(
${TARGET_NAME}
PUBLIC
BOOST_STL_INTERFACES_DISABLE_CONCEPTS
WINVER=0x0A00 # windows 10, minimum supported version by starfield
_WIN32_WINNT=0x0A00
"$<$<BOOL:${SFSE_SUPPORT_XBYAK}>:SFSE_SUPPORT_XBYAK=1>"
Expand Down Expand Up @@ -110,6 +115,7 @@ function(configure_target TARGET_NAME)
target_link_libraries(
${TARGET_NAME}
PUBLIC
Boost::headers
spdlog::spdlog
Version.lib
Dbghelp.lib
Expand Down

0 comments on commit 32a2cfa

Please sign in to comment.