File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -68,6 +68,18 @@ set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake/Modules)
68
68
#
69
69
project (pcap C )
70
70
71
+ #
72
+ # Setting CMAKE_MACOSX_RPATH to FALSE causes the installed
73
+ # libpcap.A.dylib to have just libpcap.A.dylib as the install
74
+ # name; Apple built libpcap with an install_name of /usr/lib/libpcap.A.dylib
75
+ # (back when they still shipped individual system dylibs rather than
76
+ # shipping a pre-built shared library cache, at least), and we do the
77
+ # same with autotools; do the same with CMake.
78
+ #
79
+ if (NOT DEFINED CMAKE_INSTALL_NAME_DIR )
80
+ set (CMAKE_INSTALL_NAME_DIR ${CMAKE_INSTALL_PREFIX} /lib )
81
+ endif ()
82
+
71
83
#
72
84
# For getting raw lists of --libs and --libs --static information from a
73
85
# pkg-config module.
You can’t perform that action at this time.
0 commit comments