Update CMakeLists.txt

This commit is contained in:
Kae 2024-03-17 15:32:05 +11:00
parent b98b0334a9
commit 8d1d278e7b

View File

@ -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)