diff --git a/CMakeLists.txt b/CMakeLists.txt index 4b4b42a5..46492efc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -19,8 +19,7 @@ endif() include(CheckIPOSupported) check_ipo_supported(RESULT ipo_supported) -find_package( PythonInterp ) -find_package( PythonLibs ) +find_package(Python3 COMPONENTS Interpreter Development REQUIRED) find_library(CFITSIO_LIBRARY NAMES fitsio cfitsio libcfitsio