mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-06-28 16:41:01 +03:00
made the rpath finding a bit more flexible than just hardcoded gcc12 and gcc13
This commit is contained in:
parent
12e95b2c5c
commit
00b1a50977
@ -5,11 +5,7 @@ endif(CMAKE_SYSTEM_NAME MATCHES "Linux")
|
||||
if(CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
|
||||
set(FREEBSD true)
|
||||
set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
|
||||
if(CMAKE_C_COMPILER MATCHES "/usr/local/bin/gcc12")
|
||||
set(CMAKE_BUILD_RPATH "/usr/local/lib/gcc12")
|
||||
elseif(CMAKE_C_COMPILER MATCHES "/usr/local/bin/gcc13")
|
||||
set(CMAKE_BUILD_RPATH "/usr/local/lib/gcc13")
|
||||
endif()
|
||||
execute_process(COMMAND "sh" "-c" "realpath `dirname \\`${CMAKE_C_COMPILER} --print-file-name=libgcc_s.so\\``" OUTPUT_VARIABLE CMAKE_BUILD_RPATH)
|
||||
endif(CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
|
||||
|
||||
if(CMAKE_SYSTEM_NAME MATCHES "NetBSD")
|
||||
|
Loading…
x
Reference in New Issue
Block a user