From b8006cb4c9d016de0b20fd13851f40a646e9ea40 Mon Sep 17 00:00:00 2001 From: Maksym Sditanov Date: Mon, 7 Oct 2019 21:41:38 +0300 Subject: [PATCH] Findassimp.cmake: add hint for lib search path for Linux Add /usr/lib64 and /usr/lib directory hints to cmake module libassimp.so library installs in /usr/lib for 32bit or in /usr/lib64 for 64bit distros. All linux distros apply custom patch to extend cmake HINTs to systems /usr/lib and /usr/lib64 (see https://gitweb.gentoo.org/repo/gentoo.git/tree/media-libs/assimp/files/findassimp-3.3.1.patch) Signed-off-by: Maksym Sditanov --- cmake-modules/Findassimp.cmake | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmake-modules/Findassimp.cmake b/cmake-modules/Findassimp.cmake index 95f3250b3..23b975e68 100644 --- a/cmake-modules/Findassimp.cmake +++ b/cmake-modules/Findassimp.cmake @@ -62,6 +62,8 @@ else(WIN32) assimp_LIBRARIES NAMES assimp PATHS /usr/local/lib/ + PATHS /usr/lib64/ + PATHS /usr/lib/ ) if (assimp_INCLUDE_DIRS AND assimp_LIBRARIES) @@ -78,4 +80,4 @@ else(WIN32) endif (assimp_FIND_REQUIRED) endif (assimp_FOUND) -endif(WIN32) \ No newline at end of file +endif(WIN32)