From 1ddc5bb4a87985f32891617485f3ea3389a15acc Mon Sep 17 00:00:00 2001 From: Marcel Loose Date: Thu, 9 Jan 2025 16:02:42 +0100 Subject: [PATCH] Fix find_package for Boost.Python On some platforms you need to explicitly specify both major and minor python version number to `FindBoost.cmake`. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e495e28..b0c61c3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -9,7 +9,7 @@ find_package( # Find Casacore and its dependencies set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake) find_package(Casacore REQUIRED) -find_package(Boost REQUIRED COMPONENTS python3) +find_package(Boost REQUIRED COMPONENTS python${Python_VERSION_MAJOR}${Python_VERSION_MINOR}) # If environment variable CASACORE_DATA is set, assume it points to a directory # containing the cascacore data files, and install its contents.