summaryrefslogtreecommitdiff
path: root/media-gfx/blender/files/blender-4.1.1-numpy.patch
blob: bd76da8b59593c982b196b2cb095f70a49461a36 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
From: Paul Zander <negril.nx+gentoo@gmail.com>
Date: Fri, 23 Aug 2024 13:19:21 +0200
Subject: [PATCH] fix numpy lookup

use cmake config for find_package()

Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com>

--- a/build_files/cmake/platform/platform_unix.cmake
+++ b/build_files/cmake/platform/platform_unix.cmake
@@ -463,13 +463,13 @@ if(WITH_BOOST)
     endif()
     list(APPEND __boost_packages system)
     set(Boost_NO_WARN_NEW_VERSIONS ON)
-    find_package(Boost 1.48 COMPONENTS ${__boost_packages})
+    find_package(Boost 1.48 CONFIG COMPONENTS ${__boost_packages})
     if(NOT Boost_FOUND)
       # try to find non-multithreaded if -mt not found, this flag
       # doesn't matter for us, it has nothing to do with thread
       # safety, but keep it to not disturb build setups
       set(Boost_USE_MULTITHREADED OFF)
-      find_package(Boost 1.48 COMPONENTS ${__boost_packages})
+      find_package(Boost 1.48 CONFIG COMPONENTS ${__boost_packages})
     endif()
     unset(__boost_packages)
     if(Boost_USE_STATIC_LIBS AND WITH_BOOST_ICU)