diff options
author | Alexis Ballier <aballier@gentoo.org> | 2022-06-23 11:06:23 +0200 |
---|---|---|
committer | Alexis Ballier <aballier@gentoo.org> | 2022-06-23 13:10:32 +0200 |
commit | df81a0104c301303b0a7c2f4ea1d74dcb9e6a699 (patch) | |
tree | 24f0ed69e5ca06b44499460ea87d76938b1447c3 /dev-ros/ament_cmake_core/files | |
parent | www-apps/nikola: Replace optional runtime dependencies by optfeature (diff) | |
download | gentoo-df81a0104c301303b0a7c2f4ea1d74dcb9e6a699.tar.gz gentoo-df81a0104c301303b0a7c2f4ea1d74dcb9e6a699.tar.bz2 gentoo-df81a0104c301303b0a7c2f4ea1d74dcb9e6a699.zip |
dev-ros/ament_cmake_core: use unversionned python when building for gentoo
this honours EPYTHON
Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Alexis Ballier <aballier@gentoo.org>
Diffstat (limited to 'dev-ros/ament_cmake_core/files')
-rw-r--r-- | dev-ros/ament_cmake_core/files/findpython.patch | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/dev-ros/ament_cmake_core/files/findpython.patch b/dev-ros/ament_cmake_core/files/findpython.patch new file mode 100644 index 000000000000..790b0631b82c --- /dev/null +++ b/dev-ros/ament_cmake_core/files/findpython.patch @@ -0,0 +1,15 @@ +Index: ament_cmake_core/cmake/core/python.cmake +=================================================================== +--- ament_cmake_core.orig/cmake/core/python.cmake ++++ ament_cmake_core/cmake/core/python.cmake +@@ -17,6 +17,10 @@ + # Example: + # find_package(Python3 3.8 REQUIRED) + # find_package(ament_cmake REQUIRED) ++ ++if (CMAKE_GENTOO_BUILD OR CMAKE_BUILD_TYPE STREQUAL Gentoo) ++ set(Python3_FIND_UNVERSIONED_NAMES FIRST) ++endif() + if(NOT TARGET Python3::Interpreter) + find_package(Python3 REQUIRED COMPONENTS Interpreter) + endif() |