summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2015-12-15 00:48:04 +0000
committerPeter Powell <petpow@saberuk.com>2015-12-31 02:51:59 +0000
commit9399a63b6617175a8e4a667f1a87ab2492feab59 (patch)
treeaaaa232c607eb22769dcdb15fc4b3f36a0635e62 /src
parentb34cf58c8bdab22cf224219ffd93348edc1ba3f6 (diff)
Replace a ton of nested if statements with elseif statements.
Diffstat (limited to 'src')
-rw-r--r--src/CMakeLists.txt14
1 files changed, 5 insertions, 9 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index ba2eff6c9..373677fe7 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -12,16 +12,12 @@ endif()
if(HAVE_EPOLL)
list(APPEND SRC_SRCS socketengines/socketengine_epoll.cpp)
+elseif(HAVE_KQUEUE)
+ list(APPEND SRC_SRCS socketengines/socketengine_kqueue.cpp)
+elseif(HAVE_POLL)
+ list(APPEND SRC_SRCS socketengines/socketengine_poll.cpp)
else()
- if(HAVE_KQUEUE)
- list(APPEND SRC_SRCS socketengines/socketengine_kqueue.cpp)
- else()
- if(HAVE_POLL)
- list(APPEND SRC_SRCS socketengines/socketengine_poll.cpp)
- else()
- list(APPEND SRC_SRCS socketengines/socketengine_select.cpp)
- endif()
- endif()
+ list(APPEND SRC_SRCS socketengines/socketengine_select.cpp)
endif()
list(SORT SRC_SRCS)