[Bf-blender-cvs] [4994744be40] pygpu_extensions: Fix finding system Haru library on Debian.

Bastien Montagne noreply at git.blender.org
Fri Feb 12 16:17:19 CET 2021


Commit: 4994744be40a0460f7ebe2fbbf4675b29894aed1
Author: Bastien Montagne
Date:   Thu Feb 11 20:28:10 2021 +0100
Branches: pygpu_extensions
https://developer.blender.org/rB4994744be40a0460f7ebe2fbbf4675b29894aed1

Fix finding system Haru library on Debian.

Paths and names of system packages-installed libhpdf on Debian (and
probably its derived distributions?) are slightly different than what
was given to CMake finding script.

===================================================================

M	build_files/cmake/Modules/FindHaru.cmake

===================================================================

diff --git a/build_files/cmake/Modules/FindHaru.cmake b/build_files/cmake/Modules/FindHaru.cmake
index 5774f83b8c5..7db57a6adfb 100644
--- a/build_files/cmake/Modules/FindHaru.cmake
+++ b/build_files/cmake/Modules/FindHaru.cmake
@@ -35,11 +35,13 @@ find_path(HARU_INCLUDE_DIR
     ${_haru_SEARCH_DIRS}
   PATH_SUFFIXES
     include/haru
+    include
 )
 
 find_library(HARU_LIBRARY
   NAMES
     hpdfs
+    hpdf
   HINTS
     ${_haru_SEARCH_DIRS}
   PATH_SUFFIXES



More information about the Bf-blender-cvs mailing list