Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
L
libzmq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
libzmq
Commits
69a894e1
Unverified
Commit
69a894e1
authored
Apr 25, 2018
by
Luca Boccassi
Committed by
GitHub
Apr 25, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3055 from dennisklein/master
Install relocatable dylibs (MacOS)
parents
7f230b12
0dda6366
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
2 deletions
+17
-2
CMakeLists.txt
CMakeLists.txt
+17
-2
No files found.
CMakeLists.txt
View file @
69a894e1
...
...
@@ -7,6 +7,23 @@ list (INSERT CMAKE_MODULE_PATH 0 "${CMAKE_CURRENT_SOURCE_DIR}")
set
(
ZMQ_CMAKE_MODULES_DIR
${
CMAKE_CURRENT_SOURCE_DIR
}
/builds/cmake/Modules
)
list
(
APPEND CMAKE_MODULE_PATH
${
ZMQ_CMAKE_MODULES_DIR
}
)
# Apply CMP0042: MACOSX_RPATH is enabled by default
cmake_policy
(
SET CMP0042 NEW
)
include
(
GNUInstallDirs
)
if
(
${
CMAKE_SYSTEM_NAME
}
STREQUAL Darwin
)
# Find more information: https://cmake.org/Wiki/CMake_RPATH_handling
# Add an install rpath if it is not a system directory
list
(
FIND CMAKE_PLATFORM_IMPLICIT_LINK_DIRECTORIES
"
${
CMAKE_INSTALL_PREFIX
}
/
${
CMAKE_INSTALL_LIBDIR
}
"
isSystemDir
)
if
(
"
${
isSystemDir
}
"
STREQUAL
"-1"
)
set
(
CMAKE_INSTALL_RPATH
"
${
CMAKE_INSTALL_PREFIX
}
/
${
CMAKE_INSTALL_LIBDIR
}
"
)
endif
()
# Add linker search paths pointing to external dependencies
set
(
CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE
)
endif
()
include
(
CheckCXXCompilerFlag
)
CHECK_CXX_COMPILER_FLAG
(
"-std=gnu++11"
COMPILER_SUPPORTS_CXX11
)
if
(
COMPILER_SUPPORTS_CXX11
)
...
...
@@ -1110,8 +1127,6 @@ endif ()
#-----------------------------------------------------------------------------
# installer
include
(
GNUInstallDirs
)
if
(
MSVC
)
install
(
TARGETS
${
target_outputs
}
EXPORT
${
PROJECT_NAME
}
-targets
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment