fix dynamic link issue
This commit is contained in:
parent
da98c0941b
commit
f0d3f6778c
@ -264,7 +264,7 @@ function(use_townengine target sources output_directory)
|
|||||||
# launcher binary, loads game and engine shared library
|
# launcher binary, loads game and engine shared library
|
||||||
add_executable(${target} ${TWN_ROOT_DIR}/src/twn_main.c)
|
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?
|
# todo: copy instead?
|
||||||
# put libtownengine.so alongside the binary
|
# put libtownengine.so alongside the binary
|
||||||
|
Loading…
Reference in New Issue
Block a user