Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
biboumi
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
88
Issues
88
List
Boards
Labels
Service Desk
Milestones
Merge Requests
7
Merge Requests
7
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
louiz’
biboumi
Commits
18b27793
Commit
18b27793
authored
Apr 30, 2014
by
louiz’
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
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