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) 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)
# fuck boost
set(BOOST_LIBS_OPTIONAL "" CACHE STRING "Boost libs to be compiled") # this is necessary for boost to work, change at your peril
add_subdirectory(external/boost-cmake) find_package(Boost 1.76.5 EXACT)
set(BOOST_ROOT ${CMAKE_BINARY_DIR}/_deps/boost-src) if (NOT ${Boost_FOUND})
find_package(Boost REQUIRED PATHS ${CMAKE_BINARY_DIR}/_deps/boost-src/tools/boost_install/ NO_DEFAULT_PATH) 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) include_directories(${CMAKE_BINARY_DIR}/_deps/boost-src)
execute_process(COMMAND execute_process(COMMAND