From f0d3f6778ceadcd73f3eaf64cff19e561cb1c4ba Mon Sep 17 00:00:00 2001 From: veclavtalica Date: Sun, 13 Oct 2024 21:36:01 +0300 Subject: [PATCH] fix dynamic link issue --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e0feabc..cba7670 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -264,7 +264,7 @@ function(use_townengine target sources output_directory) # launcher binary, loads game and engine shared library add_executable(${target} ${TWN_ROOT_DIR}/src/twn_main.c) - target_compile_options(${target} PRIVATE $<$:-Wl,-rpath,$ORIGIN/>) + target_link_options(${target} PRIVATE $<$:-Wl,-rpath,$ORIGIN/>) # todo: copy instead? # put libtownengine.so alongside the binary