i hate boost

This commit is contained in:
BenCat07 2023-06-08 17:27:29 +02:00
parent f07858a4d7
commit f84fa1e51a

View File

@ -100,11 +100,12 @@ 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)
include_directories(${Boost_INCLUDE_DIRS})
include_directories(${CMAKE_BINARY_DIR}/_deps/boost-src/boost)
execute_process(COMMAND
"${GIT_EXECUTABLE}" log -1 --pretty=\"%h\"