diff --git a/CMakeLists.txt b/CMakeLists.txt index 11f0994..3379da6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -172,12 +172,15 @@ function(give_options_without_warnings target) target_compile_options(${target} PUBLIC ${BUILD_FLAGS} $<$:${BUILD_FLAGS_RELEASE}> - $<$:${BUILD_FLAGS_DEBUG}>) + $<$:${BUILD_FLAGS_DEBUG}> + $<$:-Wl,-rpath,./>) target_link_options(${target} PUBLIC ${BUILD_FLAGS} + # -Wl,--no-undefined # TODO: use later for implementing no-libc $<$:${BUILD_FLAGS_RELEASE}> - $<$:${BUILD_FLAGS_DEBUG}>) + $<$:${BUILD_FLAGS_DEBUG}> + $<$:-Wl,-rpath,./>) target_compile_definitions(${target} PUBLIC ORGANIZATION_NAME="${ORGANIZATION_NAME}"