From cc9b20ac78361cf44384751c73d7cf0d1f0e5a3d Mon Sep 17 00:00:00 2001 From: Guillaume Paran Date: Thu, 21 Jan 2021 19:10:14 +0100 Subject: [PATCH] [CMake] FIX SofaPython3Tools inclusion --- CMakeLists.txt | 1 + SofaPython3Config.cmake.in | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 806c1b2f..c5b6df54 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -190,6 +190,7 @@ sofa_create_package( RELOCATABLE "plugins" ) +configure_file("${CMAKE_CURRENT_SOURCE_DIR}/CMake/SofaPython3Tools.cmake" "${CMAKE_BINARY_DIR}/cmake/SofaPython3Tools.cmake" COPYONLY) install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/CMake/SofaPython3Tools.cmake" DESTINATION lib/cmake/SofaPython3 diff --git a/SofaPython3Config.cmake.in b/SofaPython3Config.cmake.in index 0953100f..d32d89d9 100644 --- a/SofaPython3Config.cmake.in +++ b/SofaPython3Config.cmake.in @@ -6,7 +6,7 @@ set(SP3_WITH_SOFAEXPORTER @SP3_WITH_SOFAEXPORTER@) set(SP3_PYTHON_PACKAGES_DIRECTORY @SP3_PYTHON_PACKAGES_DIRECTORY@) -include("${CMAKE_CURRENT_LIST_DIR}/SofaPython3Tools.cmake") +include(SofaPython3Tools) # Find Python3 executable and set PYTHON_EXECUTABLE before finding pybind11 # to be sure that pybind11 relies on the right Python version