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
cb1970e1
Unverified
Commit
cb1970e1
authored
Nov 02, 2018
by
Luca Boccassi
Committed by
GitHub
Nov 02, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3291 from WallStProg/master
Some changes for CMakeLists.txt:
parents
efc9a302
981cff5c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
66 additions
and
28 deletions
+66
-28
CMakeLists.txt
CMakeLists.txt
+50
-28
BillTorpey.md
RELICENSE/BillTorpey.md
+16
-0
No files found.
CMakeLists.txt
View file @
cb1970e1
# CMake build script for ZeroMQ
cmake_minimum_required
(
VERSION 2.8.12
)
project
(
ZeroMQ
)
if
(
${
CMAKE_SYSTEM_NAME
}
STREQUAL Darwin
)
cmake_minimum_required
(
VERSION 3.0.2
)
else
()
cmake_minimum_required
(
VERSION 2.8.12
)
endif
()
option
(
ENABLE_ASAN
"Build with address sanitizer)"
OFF
)
if
(
ENABLE_ASAN
)
message
(
STATUS
"Instrumenting with Address Sanitizer"
)
set
(
CMAKE_C_FLAGS
"
${
CMAKE_C_FLAGS
}
-fsanitize=address -fsanitize-address-use-after-scope -fno-omit-frame-pointer"
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-fsanitize=address -fsanitize-address-use-after-scope -fno-omit-frame-pointer"
)
set
(
CMAKE_SHARED_LINKER_FLAGS
"
${
CMAKE_SHARED_LINKER_FLAGS
}
-fsanitize=address -fsanitize-address-use-after-scope"
)
set
(
CMAKE_EXE_LINKER_FLAGS
"
${
CMAKE_EXE_LINKER_FLAGS
}
-fsanitize=address -fsanitize-address-use-after-scope"
)
endif
()
option
(
ENABLE_INTRINSICS
"Build using compiler intrinsics for atomic ops"
OFF
)
if
(
ENABLE_INTRINSICS
)
message
(
STATUS
"Using compiler intrinsics for atomic ops"
)
add_definitions
(
-DZMQ_HAVE_ATOMIC_INTRINSICS
)
endif
()
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
# Apply CMP0042: MACOSX_RPATH is enabled by default
cmake_policy
(
SET CMP0042 NEW
)
# 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"
)
...
...
@@ -916,29 +935,32 @@ if(MSVC)
DEPENDS
${
nsis-template
}
)
endif
()
file
(
MAKE_DIRECTORY
${
CMAKE_CURRENT_BINARY_DIR
}
/doc
)
file
(
GLOB docs RELATIVE
${
CMAKE_CURRENT_BINARY_DIR
}
/
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/doc/*.txt"
)
set
(
html-docs
)
foreach
(
txt
${
docs
}
)
string
(
REGEX REPLACE
".*/(.*)
\\
.txt"
"
\\
1.html"
html
${
txt
}
)
set
(
src
${
txt
}
)
set
(
dst doc/
${
html
}
)
if
(
WITH_DOC
)
add_custom_command
(
OUTPUT
${
dst
}
COMMAND
${
ASCIIDOC_EXECUTABLE
}
-d manpage
-b xhtml11
-f
${
CMAKE_CURRENT_SOURCE_DIR
}
/doc/asciidoc.conf
-azmq_version=
${
ZMQ_VERSION
}
-o
${
dst
}
${
src
}
DEPENDS
${
CMAKE_CURRENT_BINARY_DIR
}
/
${
src
}
WORKING_DIRECTORY
${
CMAKE_CURRENT_BINARY_DIR
}
COMMENT
"Generating
${
html
}
"
)
list
(
APPEND html-docs
${
CMAKE_CURRENT_BINARY_DIR
}
/
${
dst
}
)
endif
()
endforeach
()
option
(
WITH_DOCS
"Build html docs"
ON
)
if
(
WITH_DOCS
)
file
(
MAKE_DIRECTORY
${
CMAKE_CURRENT_BINARY_DIR
}
/doc
)
file
(
GLOB docs RELATIVE
${
CMAKE_CURRENT_BINARY_DIR
}
/
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/doc/*.txt"
)
set
(
html-docs
)
foreach
(
txt
${
docs
}
)
string
(
REGEX REPLACE
".*/(.*)
\\
.txt"
"
\\
1.html"
html
${
txt
}
)
set
(
src
${
txt
}
)
set
(
dst doc/
${
html
}
)
if
(
WITH_DOC
)
add_custom_command
(
OUTPUT
${
dst
}
COMMAND
${
ASCIIDOC_EXECUTABLE
}
-d manpage
-b xhtml11
-f
${
CMAKE_CURRENT_SOURCE_DIR
}
/doc/asciidoc.conf
-azmq_version=
${
ZMQ_VERSION
}
-o
${
dst
}
${
src
}
DEPENDS
${
CMAKE_CURRENT_BINARY_DIR
}
/
${
src
}
WORKING_DIRECTORY
${
CMAKE_CURRENT_BINARY_DIR
}
COMMENT
"Generating
${
html
}
"
)
list
(
APPEND html-docs
${
CMAKE_CURRENT_BINARY_DIR
}
/
${
dst
}
)
endif
()
endforeach
()
endif
()
if
(
ZMQ_BUILD_FRAMEWORK
)
add_custom_command
(
...
...
RELICENSE/BillTorpey.md
0 → 100644
View file @
cb1970e1
# Permission to Relicense under MPLv2 or any other OSI approved license chosen by the current ZeroMQ BDFL
This is a statement by Bill Torpey that grants permission to
relicense its copyrights in the libzmq C++ library (ZeroMQ) under the
Mozilla Public License v2 (MPLv2) or any other Open Source Initiative
approved license chosen by the current ZeroMQ BDFL (Benevolent
Dictator for Life).
A portion of the commits made by the Github handle "wallstprog", with
commit author "Bill Torpey
<wallstprog@gmail.com>
", are
copyright of Bill Torpey. This document hereby grants the libzmq
project team to relicense libzmq, including all past, present and
future contributions of the author listed above.
Bill Torpey
2018/11/02
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