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
0dce2233
Commit
0dce2233
authored
May 30, 2018
by
Simon Giesecke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Problem: no check if noexcept is supported by compiler
Solution: add compile check
parent
93194e7c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
0 deletions
+21
-0
CMakeLists.txt
CMakeLists.txt
+1
-0
ZMQSourceRunChecks.cmake
builds/cmake/Modules/ZMQSourceRunChecks.cmake
+18
-0
platform.hpp.in
builds/cmake/platform.hpp.in
+2
-0
No files found.
CMakeLists.txt
View file @
0dce2233
...
...
@@ -415,6 +415,7 @@ if (CMAKE_SYSTEM_NAME MATCHES "SunOS" OR CMAKE_SYSTEM_NAME MATCHES "NetBSD")
endif
()
endif
()
zmq_check_noexcept
()
#-----------------------------------------------------------------------------
if
(
NOT CMAKE_CROSSCOMPILING AND NOT MSVC
)
...
...
builds/cmake/Modules/ZMQSourceRunChecks.cmake
View file @
0dce2233
...
...
@@ -293,3 +293,21 @@ int main (int argc, char *argv [])
"
ZMQ_HAVE_GETRANDOM
)
endmacro
()
macro
(
zmq_check_noexcept
)
message
(
STATUS
"Checking whether noexcept is supported"
)
check_cxx_source_compiles
(
"
struct X
{
X(int i) noexcept {}
};
int main(int argc, char *argv [])
{
X x(5);
return 0;
}
"
ZMQ_HAVE_NOEXCEPT
)
endmacro
()
builds/cmake/platform.hpp.in
View file @
0dce2233
...
...
@@ -19,6 +19,8 @@
#cmakedefine HAVE_MKDTEMP
#cmakedefine ZMQ_HAVE_UIO
#cmakedefine ZMQ_HAVE_NOEXCEPT
#cmakedefine ZMQ_HAVE_EVENTFD
#cmakedefine ZMQ_HAVE_EVENTFD_CLOEXEC
#cmakedefine ZMQ_HAVE_IFADDRS
...
...
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