mirror of
https://github.com/QuasarApp/LIEF.git
synced 2025-05-09 02:09:34 +00:00
Fix MacOS rpath
This commit is contained in:
parent
9974da21ed
commit
a479b6ee6e
@ -511,7 +511,9 @@ message(STATUS "Configuration Types: ${CMAKE_CONFIGURATION_TYPES}")
|
||||
message(STATUS "Build Types: ${CMAKE_BUILD_TYPE}")
|
||||
|
||||
if(APPLE)
|
||||
set_target_properties(LIB_LIEF PROPERTIES MACOSX_RPATH ".")
|
||||
set_target_properties(LIB_LIEF PROPERTIES
|
||||
MACOSX_RPATH ON
|
||||
)
|
||||
endif()
|
||||
|
||||
# API
|
||||
|
@ -151,12 +151,15 @@ set_target_properties(pyLIEF PROPERTIES PREFIX "" OUTPUT_NAME "lief")
|
||||
add_dependencies(pyLIEF lief_pybind11)
|
||||
|
||||
if(APPLE)
|
||||
set_target_properties(pyLIEF PROPERTIES MACOSX_RPATH ".")
|
||||
set_target_properties(pyLIEF PROPERTIES LINK_FLAGS "-undefined dynamic_lookup ")
|
||||
set_target_properties(pyLIEF PROPERTIES
|
||||
MACOSX_RPATH ON
|
||||
LINK_FLAGS "-undefined dynamic_lookup "
|
||||
)
|
||||
endif()
|
||||
|
||||
set_target_properties(pyLIEF PROPERTIES PREFIX "")
|
||||
if (UNIX)
|
||||
# Even on osx (c.f. EXT_SUFFIX from sysconfig)
|
||||
set_target_properties(pyLIEF PROPERTIES SUFFIX ".so")
|
||||
elseif(WIN32)
|
||||
set_target_properties(pyLIEF PROPERTIES SUFFIX ".pyd")
|
||||
|
Loading…
x
Reference in New Issue
Block a user