CMake: Use config mode for finding Boost packages

This commit is contained in:
Sude 2024-11-15 19:32:22 +02:00
parent d83ba7ff30
commit 0e3c1572c1

View File

@ -3,10 +3,6 @@ project (lgogdownloader LANGUAGES C CXX VERSION 3.15)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/")
# Disable search for boost-cmake
# Fixes building with Boost >= 1.70.0
set(Boost_NO_BOOST_CMAKE ON)
option(USE_QT_GUI "Build with Qt GUI login support" OFF)
if(USE_QT_GUI)
add_definitions(-DUSE_QT_GUI_LOGIN=1)
@ -15,6 +11,7 @@ if(USE_QT_GUI)
endif(USE_QT_GUI)
find_package(Boost
CONFIG
REQUIRED
system
filesystem