$NetBSD: patch-src_crssync_CMakeLists.txt,v 1.7 2024/05/01 21:05:18 adam Exp $ Fix executing dynamically-linked executable from the build directory. \todo Understand if this is the right fix, vs some sort of build-time RPATH command to cmake, and discuss with upstream. --- src/crssync/CMakeLists.txt.orig 2022-01-14 12:06:34.000000000 +0000 +++ src/crssync/CMakeLists.txt @@ -23,7 +23,7 @@ else () else() add_custom_target(synccrsdb COMMENT "Running crssync" - COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/crssync + COMMAND env LD_LIBRARY_PATH=${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/../lib ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/crssync DEPENDS crssync ) endif()