40 lines
1.5 KiB
Diff
40 lines
1.5 KiB
Diff
From 584a0923a3c78304974eb05930fbb908edbc8c8c Mon Sep 17 00:00:00 2001
|
|
From: Helio Chissini de Castro <helio@kde.org>
|
|
Date: Tue, 18 Apr 2017 19:21:30 +0200
|
|
Subject: [PATCH] Assimp cmake provider fix
|
|
|
|
---
|
|
assimp-config.cmake.in | 9 +++------
|
|
1 file changed, 3 insertions(+), 6 deletions(-)
|
|
|
|
diff --git a/assimp-config.cmake.in b/assimp-config.cmake.in
|
|
index e06cc10..9224b9b 100644
|
|
--- a/assimp-config.cmake.in
|
|
+++ b/assimp-config.cmake.in
|
|
@@ -10,10 +10,7 @@
|
|
# ASSIMP_LIBRARY_DIRS - link directories
|
|
# ASSIMP_LIBRARIES - libraries to link plugins with
|
|
# ASSIMP_Boost_VERSION - the boost version assimp was compiled with
|
|
-get_filename_component(_PREFIX "${CMAKE_CURRENT_LIST_FILE}" PATH)
|
|
-get_filename_component(_PREFIX "${_PREFIX}" PATH)
|
|
-get_filename_component(_PREFIX "${_PREFIX}" PATH)
|
|
-get_filename_component(ASSIMP_ROOT_DIR "${_PREFIX}" PATH)
|
|
+set(ASSIMP_ROOT_DIR "@CMAKE_INSTALL_PREFIX@")
|
|
|
|
if( MSVC )
|
|
# in order to prevent DLL hell, each of the DLLs have to be suffixed with the major version and msvc prefix
|
|
@@ -45,8 +42,8 @@ if( WIN32 )
|
|
set( ASSIMP_CXX_FLAGS " -DBOOST_ALL_DYN_LINK -DBOOST_ALL_NO_LIB")
|
|
endif()
|
|
set( ASSIMP_LINK_FLAGS "" )
|
|
-set( ASSIMP_LIBRARY_DIRS "${ASSIMP_ROOT_DIR}/@ASSIMP_LIB_INSTALL_DIR@")
|
|
-set( ASSIMP_INCLUDE_DIRS "${ASSIMP_ROOT_DIR}/@ASSIMP_INCLUDE_INSTALL_DIR@")
|
|
+set( ASSIMP_LIBRARY_DIRS "@ASSIMP_LIB_INSTALL_DIR@")
|
|
+set( ASSIMP_INCLUDE_DIRS "@ASSIMP_INCLUDE_INSTALL_DIR@")
|
|
set( ASSIMP_LIBRARIES assimp${ASSIMP_LIBRARY_SUFFIX})
|
|
set( ASSIMP_LIBRARIES ${ASSIMP_LIBRARIES}@CMAKE_DEBUG_POSTFIX@)
|
|
|
|
--
|
|
2.9.3
|
|
|