diff --git a/gui/CMakeLists.txt b/gui/CMakeLists.txt index e781f322ed..bc3fbe2572 100644 --- a/gui/CMakeLists.txt +++ b/gui/CMakeLists.txt @@ -111,7 +111,9 @@ find_package(Qt${QT_VERSION_MAJOR} COMPONENTS Widgets Xml Svg REQUIRED) find_package(KDDockWidgets QUIET) add_definitions(-DBOOST_ALL_DYN_LINK) -find_package(Boost COMPONENTS system filesystem thread chrono REQUIRED) +# Boost.System is header-only since Boost 1.69 and its compiled library was removed in Boost 1.89, so it must not be +# requested as a component. +find_package(Boost 1.69 COMPONENTS filesystem thread chrono REQUIRED) message(STATUS "Building: " ${PROJECT_NAME}) add_library(${PROJECT_NAME} SHARED ${PROJECT_SOURCES} ${PROJECT_RESOURCES}) diff --git a/packages/m2k/plugins/m2k/CMakeLists.txt b/packages/m2k/plugins/m2k/CMakeLists.txt index b800b43e89..0f871f2c11 100644 --- a/packages/m2k/plugins/m2k/CMakeLists.txt +++ b/packages/m2k/plugins/m2k/CMakeLists.txt @@ -78,8 +78,9 @@ set(CMAKE_PREFIX_PATH ${CMAKE_PREFIX_PATH};/usr/local/lib/cmake) find_package(Qt${QT_VERSION_MAJOR} COMPONENTS ${SCOPY_QT_COMPONENTS} REQUIRED) find_package(libm2k REQUIRED) -find_package(Boost COMPONENTS system filesystem thread chrono REQUIRED) # workaround for Gnuradio not finding -# Boost::chrono +# Boost.System is header-only since Boost 1.69 and its compiled library was removed in Boost 1.89, so it must not be +# requested as a component. +find_package(Boost 1.69 COMPONENTS filesystem thread chrono REQUIRED) find_package( Gnuradio "3.10" REQUIRED COMPONENTS runtime diff --git a/packages/m2k/plugins/m2k/m2k-gui/CMakeLists.txt b/packages/m2k/plugins/m2k/m2k-gui/CMakeLists.txt index acfbcb1dcf..9e9eba5d85 100644 --- a/packages/m2k/plugins/m2k/m2k-gui/CMakeLists.txt +++ b/packages/m2k/plugins/m2k/m2k-gui/CMakeLists.txt @@ -106,7 +106,9 @@ if(SCOPY_ENABLE_SIGROK_GUI) endif() add_definitions(-DBOOST_ALL_DYN_LINK) -find_package(Boost COMPONENTS system filesystem thread chrono REQUIRED) +# Boost.System is header-only since Boost 1.69 and its compiled library was removed in Boost 1.89, so it must not be +# requested as a component. +find_package(Boost 1.69 COMPONENTS filesystem thread chrono REQUIRED) message(STATUS "Building " ${PROJECT_NAME}) add_library(${PROJECT_NAME} SHARED ${PROJECT_SOURCES})