Fix crashes for boost for now (kinda jank solution)

This commit is contained in:
BenCat07 2022-03-21 19:25:12 +01:00
parent 734832aef6
commit f25ad671de

View File

@ -102,12 +102,13 @@ endif()
find_package(Git REQUIRED) find_package(Git REQUIRED)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/external") set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/external")
find_package(SDL2 REQUIRED) find_package(SDL2 REQUIRED)
find_package(Boost 1.70.0) SET (Boost_NO_SYSTEM_PATHS true)
find_package(Boost 1.71.0 EXACT)
if (NOT ${Boost_FOUND}) if (NOT ${Boost_FOUND})
set(BOOST_LIBS_OPTIONAL "" CACHE STRING "Boost libs to be compiled") set(BOOST_LIBS_OPTIONAL "" CACHE STRING "Boost libs to be compiled")
add_subdirectory(external/boost-cmake) add_subdirectory(external/boost-cmake)
SET (BOOST_ROOT ${CMAKE_BINARY_DIR}/_deps/boost-src) SET (BOOST_ROOT ${CMAKE_BINARY_DIR}/_deps/boost-src)
find_package(Boost 1.70 REQUIRED) find_package(Boost 1.71.0 EXACT REQUIRED)
include_directories(${Boost_INCLUDE_DIRS}) include_directories(${Boost_INCLUDE_DIRS})
endif() endif()