Add the RPATH posix fix support to libserene target

This commit is contained in:
Sameer Rahmani 2021-10-12 14:45:46 +01:00
parent e3fde6dfc1
commit 43dd4ac48d
2 changed files with 7 additions and 3 deletions

View File

@ -1,4 +1,4 @@
Copyright (c) 2020 Sameer Rahmani <lxsameer@gnu.org>
Copyright (c) 2019-2021 Sameer Rahmani <lxsameer@gnu.org>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal

View File

@ -30,6 +30,10 @@ if (NOT DEFINED CMAKE_CXX_VISIBILITY_PRESET AND
set(CMAKE_VISIBILITY_INLINES_HIDDEN YES)
endif()
# Prevent any future RPATH issue on Posix
if(NOT APPLE)
set(CMAKE_INSTALL_RPATH $ORIGIN)
endif()
add_library(serene
exprs/symbol.cpp