From 859ae8f91ec5c3e41cd0853c5d239fbaf43b7f57 Mon Sep 17 00:00:00 2001 From: veclavtalica Date: Wed, 21 Aug 2024 21:45:49 +0300 Subject: [PATCH] use LD_LIBRARY_PATH rather than -rpath --- CMakeLists.txt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 29ae21d..13b575d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -122,8 +122,7 @@ function(give_options target) -ffp-contract=fast -fno-signed-zeros -fno-trapping-math - -freciprocal-math - -Wl,$<$:-rpath ./>) + -freciprocal-math) set(BUILD_FLAGS_RELEASE -O3 @@ -244,7 +243,7 @@ function(use_townengine target sources output_directory data_dir) string(JOIN "\n" TOWNENGINE_BOOTSTRAP "#!/bin/env sh" "cd \"$(dirname \"$0\")\"" - "./launcher --data-dir ${data_dir}" + "LD_LIBRARY_PATH=./ ./launcher --data-dir ${data_dir}" "") FILE(GENERATE OUTPUT ${output_directory}/${target}