boost fix

This commit is contained in:
stephen 2023-12-29 05:09:40 -05:00
parent 7bebd36e94
commit 9be3695f2d

View File

@ -100,11 +100,16 @@ endif()
find_package(Git REQUIRED)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/external")
find_package(SDL2 REQUIRED)
# fuck boost
set(BOOST_LIBS_OPTIONAL "" CACHE STRING "Boost libs to be compiled")
add_subdirectory(external/boost-cmake)
set(BOOST_ROOT ${CMAKE_BINARY_DIR}/_deps/boost-src)
find_package(Boost REQUIRED PATHS ${CMAKE_BINARY_DIR}/_deps/boost-src/tools/boost_install/ NO_DEFAULT_PATH)
# this is necessary for boost to work, change at your peril
find_package(Boost 1.76.5 EXACT)
if (NOT ${Boost_FOUND})
set(BOOST_LIBS_OPTIONAL "" CACHE STRING "Boost libs to be compiled")
add_subdirectory(external/boost-cmake)
SET (BOOST_ROOT ${CMAKE_BINARY_DIR}/_deps/boost-src)
find_package(Boost 1.76.5 EXACT)
include_directories(${Boost_INCLUDE_DIRS})
endif()
include_directories(${CMAKE_BINARY_DIR}/_deps/boost-src)
execute_process(COMMAND