Update CMakeLists.txt
This commit is contained in:
parent
8d1d278e7b
commit
68b1632b92
@ -275,8 +275,8 @@ if(STAR_COMPILER_GNU)
|
|||||||
set(CMAKE_C_FLAGS_RELEASE "-DNDEBUG -Ofast")
|
set(CMAKE_C_FLAGS_RELEASE "-DNDEBUG -Ofast")
|
||||||
set(CMAKE_CXX_FLAGS_RELEASE "-DNDEBUG -Ofast")
|
set(CMAKE_CXX_FLAGS_RELEASE "-DNDEBUG -Ofast")
|
||||||
|
|
||||||
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -rpath,$ORIGIN")
|
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,-rpath,$ORIGIN")
|
||||||
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -rpath,$ORIGIN")
|
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,-rpath,$ORIGIN")
|
||||||
set(CMAKE_SKIP_BUILD_RPATH TRUE)
|
set(CMAKE_SKIP_BUILD_RPATH TRUE)
|
||||||
|
|
||||||
elseif(STAR_COMPILER_CLANG)
|
elseif(STAR_COMPILER_CLANG)
|
||||||
|
Loading…
Reference in New Issue
Block a user