diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2024-03-17 15:32:05 +1100 |
---|---|---|
committer | Kae <80987908+Novaenia@users.noreply.github.com> | 2024-03-17 15:32:05 +1100 |
commit | 8d1d278e7beeff9efd61b426e7a4af2bd265fc21 (patch) | |
tree | 43c5518299378adc9130e9d726a851f4368223fd /source/CMakeLists.txt | |
parent | b98b0334a9ef772004aed0dda38e29aa690c8499 (diff) |
Update CMakeLists.txt
Diffstat (limited to 'source/CMakeLists.txt')
-rw-r--r-- | source/CMakeLists.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/CMakeLists.txt b/source/CMakeLists.txt index a99cc7a..8df566f 100644 --- a/source/CMakeLists.txt +++ b/source/CMakeLists.txt @@ -275,6 +275,8 @@ if(STAR_COMPILER_GNU) set(CMAKE_C_FLAGS_RELEASE "-DNDEBUG -Ofast") set(CMAKE_CXX_FLAGS_RELEASE "-DNDEBUG -Ofast") + set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -rpath,$ORIGIN") + set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -rpath,$ORIGIN") set(CMAKE_SKIP_BUILD_RPATH TRUE) elseif(STAR_COMPILER_CLANG) |