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

@ -24,12 +24,16 @@
# https://cmake.org/cmake/help/latest/prop_tgt/PUBLIC_HEADER.html
# Hide all the symbols by default
if (NOT DEFINED CMAKE_CXX_VISIBILITY_PRESET AND
if(NOT DEFINED CMAKE_CXX_VISIBILITY_PRESET AND
NOT DEFINED CMAKE_VISIBILITY_INLINES_HIDDEN)
set(CMAKE_CXX_VISIBILITY_PRESET hidden)
set(CMAKE_VISIBILITY_INLINES_HIDDEN YES)
endif ()
endif()
# Prevent any future RPATH issue on Posix
if(NOT APPLE)
set(CMAKE_INSTALL_RPATH $ORIGIN)
endif()
add_library(serene
exprs/symbol.cpp