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)