Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
louiz’
biboumi
Commits
18b27793
Commit
18b27793
authored
Apr 30, 2014
by
louiz’
Browse files
Use epoll on linux by default, poll otherwise
parent
dd552b1e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
CMakeLists.txt
CMakeLists.txt
+6
-2
No files found.
CMakeLists.txt
View file @
18b27793
...
...
@@ -39,8 +39,12 @@ else()
message
(
"Building without systemd daemon support."
)
endif
()
set
(
POLLER
"POLL"
CACHE STRING
"Choose the poller between POLL and EPOLL (Linux-only)"
)
set
(
POLLER_DOCSTRING
"Choose the poller between POLL and EPOLL (Linux-only)"
)
if
(
${
CMAKE_SYSTEM_NAME
}
MATCHES
"Linux"
)
set
(
POLLER
"EPOLL"
CACHE STRING
${
POLLER_DOCSTRING
}
)
else
()
set
(
POLLER
"POLL"
CACHE STRING
${
POLLER_DOCSTRING
}
)
endif
()
if
((
NOT
${
POLLER
}
MATCHES
"POLL"
)
AND
(
NOT
${
POLLER
}
MATCHES
"EPOLL"
))
message
(
FATAL_ERROR
"POLLER must be either POLL or EPOLL"
)
...
...
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