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
7dfa7b7a
Commit
7dfa7b7a
authored
Mar 11, 2015
by
xantares
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
do not mix DLL_EXPORT & ZMQ_STATIC definitions
parent
1d2b34db
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
10 deletions
+5
-10
CMakeLists.txt
CMakeLists.txt
+5
-10
No files found.
CMakeLists.txt
View file @
7dfa7b7a
...
...
@@ -158,10 +158,6 @@ set(CMAKE_REQUIRED_INCLUDES )
add_definitions
(
-D_REENTRANT -D_THREAD_SAFE
)
if
(
WIN32
)
add_definitions
(
-DDLL_EXPORT
)
endif
()
option
(
ENABLE_EVENTFD
"Enable/disable eventfd"
ZMQ_HAVE_EVENTFD
)
macro
(
zmq_check_cxx_flag_prepend flag
)
...
...
@@ -345,7 +341,6 @@ set(LIBRARY_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR}/lib)
if
(
MSVC
)
add_definitions
(
-DWIN32
-DDLL_EXPORT
# NB: May require tweaking for highly connected applications.
-DFD_SETSIZE=4096
-D_CRT_SECURE_NO_WARNINGS
)
...
...
@@ -585,7 +580,8 @@ if(MSVC)
PUBLIC_HEADER
"
${
public_headers
}
"
RELEASE_POSTFIX
"
${
_zmq_COMPILER
}
-mt-
${
ZMQ_VERSION_MAJOR
}
_
${
ZMQ_VERSION_MINOR
}
_
${
ZMQ_VERSION_PATCH
}
"
DEBUG_POSTFIX
"
${
_zmq_COMPILER
}
-mt-gd-
${
ZMQ_VERSION_MAJOR
}
_
${
ZMQ_VERSION_MINOR
}
_
${
ZMQ_VERSION_PATCH
}
"
RUNTIME_OUTPUT_DIRECTORY
"
${
CMAKE_CURRENT_BINARY_DIR
}
/bin"
)
RUNTIME_OUTPUT_DIRECTORY
"
${
CMAKE_CURRENT_BINARY_DIR
}
/bin"
COMPILE_DEFINITIONS
"DLL_EXPORT"
)
add_library
(
libzmq-static STATIC
${
sources
}
)
set_target_properties
(
libzmq-static PROPERTIES
PUBLIC_HEADER
"
${
public_headers
}
"
...
...
@@ -595,11 +591,11 @@ if(MSVC)
OUTPUT_NAME
"libzmq"
)
else
()
add_library
(
libzmq SHARED
${
sources
}
${
public_headers
}
${
html-docs
}
${
readme-docs
}
${
zmq-pkgconfig
}
)
set_target_properties
(
libzmq PROPERTIES COMPILE_DEFINITIONS
"DLL_EXPORT"
PUBLIC_HEADER
"
${
public_headers
}
"
)
if
(
ZMQ_BUILD_FRAMEWORK
)
set_target_properties
(
libzmq PROPERTIES
FRAMEWORK TRUE
OUTPUT_NAME
"ZeroMQ"
PUBLIC_HEADER
"
${
public_headers
}
"
MACOSX_FRAMEWORK_IDENTIFIER
"org.zeromq.libzmq"
MACOSX_FRAMEWORK_SHORT_VERSION_STRING
${
ZMQ_VERSION
}
MACOSX_FRAMEWORK_BUNDLE_VERSION
${
ZMQ_VERSION
}
...
...
@@ -613,13 +609,12 @@ else()
MACOSX_PACKAGE_LOCATION lib/pkgconfig
)
else
()
set_target_properties
(
libzmq PROPERTIES
OUTPUT_NAME
"zmq"
PUBLIC_HEADER
"
${
public_headers
}
"
)
OUTPUT_NAME
"zmq"
)
endif
()
add_library
(
libzmq-static STATIC
${
sources
}
${
public_headers
}
${
html-docs
}
${
readme-docs
}
${
zmq-pkgconfig
}
)
set_target_properties
(
libzmq-static PROPERTIES
PUBLIC_HEADER
"
${
public_headers
}
"
COMPILE_
FLAGS
"-D
ZMQ_STATIC"
COMPILE_
DEFINITIONS
"
ZMQ_STATIC"
OUTPUT_NAME
"zmq-static"
)
endif
()
...
...
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