From 122f2c0a418cddcd67a8b42b021ba96d6a144026 Mon Sep 17 00:00:00 2001 From: Vsevolod Kremianskii Date: Mon, 3 Aug 2020 07:38:41 +0700 Subject: [PATCH] build: Add Boost.System dependency to CMakeLists.txt --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7b78e97d..3eacf274 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -193,7 +193,7 @@ set_target_properties(reone PROPERTIES CXX_STANDARD_REQUIRED ON) list(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake) -find_package(Boost REQUIRED COMPONENTS filesystem program_options) +find_package(Boost REQUIRED COMPONENTS filesystem program_options system) find_package(SDL2 CONFIG REQUIRED) find_package(OpenGL REQUIRED) find_package(GLEW REQUIRED) @@ -205,7 +205,7 @@ endif() target_compile_definitions(reone PRIVATE BOOST_BIND_GLOBAL_PLACEHOLDERS) target_include_directories(reone SYSTEM PRIVATE ${Boost_INCLUDE_DIRS} ${SDL2_INCLUDE_DIRS} ${MAD_INCLUDE_DIR}) -target_link_libraries(reone PRIVATE ${Boost_FILESYSTEM_LIBRARY} ${Boost_PROGRAM_OPTIONS_LIBRARY} GLEW::GLEW ${OPENGL_LIBRARIES} ${MAD_LIBRARY}) +target_link_libraries(reone PRIVATE ${Boost_FILESYSTEM_LIBRARY} ${Boost_PROGRAM_OPTIONS_LIBRARY} ${Boost_SYSTEM_LIBRARY} GLEW::GLEW ${OPENGL_LIBRARIES} ${MAD_LIBRARY}) if(WIN32) find_package(OpenAL CONFIG REQUIRED)