fix dynamic link issue

This commit is contained in:
veclav talica 2024-10-13 21:36:01 +03:00
parent da98c0941b
commit f0d3f6778c

View File

@ -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 $<$<BOOL:${LINUX}>:-Wl,-rpath,$ORIGIN/>)
target_link_options(${target} PRIVATE $<$<BOOL:${LINUX}>:-Wl,-rpath,$ORIGIN/>)
# todo: copy instead?
# put libtownengine.so alongside the binary