summaryrefslogtreecommitdiff
path: root/geography/qgis/patches/patch-src_crssync_CMakeLists.txt
blob: e09f9bbdf224218d21b92d27735f4b7ce4f9a1c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
$NetBSD: patch-src_crssync_CMakeLists.txt,v 1.1 2016/06/28 16:57:51 bouyer Exp $
Fix executing dynamically-linked executable from the build directory

--- src/crssync/CMakeLists.txt.orig	2016-06-26 16:02:58.000000000 +0200
+++ src/crssync/CMakeLists.txt	2016-06-26 16:04:09.000000000 +0200
@@ -22,7 +22,7 @@
 	)
 ELSE(MSVC AND NOT USING_NMAKE)
 	ADD_CUSTOM_TARGET(synccrsdb
-		COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/crssync
+		COMMAND env LD_LIBRARY_PATH=${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/../lib ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/crssync
 		DEPENDS crssync
 	)
 ENDIF(MSVC AND NOT USING_NMAKE)