Add the RPATH posix fix support to libserene target
This commit is contained in:
parent
e3fde6dfc1
commit
43dd4ac48d
2
LICENSE
2
LICENSE
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue