diff --git a/.github/workflows/cmake.yaml b/.github/workflows/cmake.yaml index f4dbb00..656d19b 100644 --- a/.github/workflows/cmake.yaml +++ b/.github/workflows/cmake.yaml @@ -46,6 +46,7 @@ jobs: run: | cmake \ -DCMAKE_INSTALL_PREFIX=${{github.workspace}}/build/install \ + -DPython_FIND_STRATEGY=LOCATION \ -B ${{github.workspace}}/build - name: CMake build diff --git a/CMakeLists.txt b/CMakeLists.txt index 7e4d35c..3c0a9cb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.1) +cmake_minimum_required(VERSION 3.12) project(log) enable_testing() diff --git a/python/lsst/log/CMakeLists.txt b/python/lsst/log/CMakeLists.txt index 66516a3..e5da308 100644 --- a/python/lsst/log/CMakeLists.txt +++ b/python/lsst/log/CMakeLists.txt @@ -1,3 +1,4 @@ +find_package(Python COMPONENTS Development Interpreter) add_subdirectory(log) install( diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index c34918d..e33ee97 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -1,4 +1,4 @@ -find_package(Boost REQUIRED COMPONENTS +find_package(Boost REQUIRED NO_MODULE COMPONENTS unit_test_framework REQUIRED )