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 27 28 29
|
From: Thomas Moulard <thomas.moulard@gmail.com>
Date: Thu, 11 Jul 2013 16:57:11 +0900
Subject: Fix installed CMake module to cope with multiarch.
Do not specify the library path by name and let CMake look for it
instead.
Author: Thomas Moulard <thomas.moulard@gmail.com>
Forwarded: no
---
cmake/urdfdom-config.cmake.in | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/cmake/urdfdom-config.cmake.in b/cmake/urdfdom-config.cmake.in
index 43b7a06..2477fb7 100644
--- a/cmake/urdfdom-config.cmake.in
+++ b/cmake/urdfdom-config.cmake.in
@@ -7,10 +7,7 @@ set(@PKG_NAME@_INCLUDE_DIRS "@CMAKE_INSTALL_PREFIX@/include" "@Boost_INCLUDE_DIR
foreach(lib @PKG_LIBRARIES@)
set(onelib "${lib}-NOTFOUND")
- find_library(onelib ${lib}
- PATHS "@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_LIBDIR@"
- NO_DEFAULT_PATH
- )
+ find_library(onelib ${lib})
if(NOT onelib)
message(FATAL_ERROR "Library '${lib}' in package @PKG_NAME@ is not installed properly")
endif()
|