summarylogtreecommitdiffstats
path: root/set_libdir.patch
blob: 630d80338349389ffccae6e18c33c790b4b1668f (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
27
28
--- CMakeLists.txt
+++ CMakeLists.txt

@@ -12,7 +12,7 @@ Change the runtime path assigned during packaging
 option(BUILD_SHARED_LIBS "Build LASlib as DLL" OFF)
 
 if (BUILD_SHARED_LIBS AND UNIX AND NOT APPLE)
-	set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib/LASlib")
+	set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib")
 endif()
 
 add_subdirectory(LASlib/src)

--- LASlib/src/CMakeLists.txt
+++ LASlib/src/CMakeLists.txt

@@ -111,8 +111,8 @@ Change the installation directory
 else()
 	install(TARGETS LASlib COMPONENT laslib EXPORT laslib-targets
-		ARCHIVE DESTINATION lib/LASlib
-		LIBRARY DESTINATION lib/LASlib
-		RUNTIME DESTINATION lib/LASlib)
+		ARCHIVE DESTINATION lib
+		LIBRARY DESTINATION lib
+		RUNTIME DESTINATION lib)
 	install(EXPORT laslib-targets COMPONENT laslib DESTINATION lib/cmake/LASlib)
 	install(FILES ${CMAKE_SOURCE_DIR}/LASlib/src/laslib-config.cmake COMPONENT laslib DESTINATION lib/cmake/LASlib)
 endif(MSVC)