Skip to content

Commit 46ab940

Browse files
author
Peter Thorson
committed
[cmake] Refactor cmake check for Apple/Haiku/others to be a little more readable.
1 parent 76c1752 commit 46ab940

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

CMakeLists.txt

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -151,14 +151,12 @@ if (BUILD_TESTS OR BUILD_EXAMPLES)
151151

152152
# clang
153153
if (CMAKE_COMPILER_IS_CLANGXX)
154-
if (NOT APPLE AND NOT HAIKU)
155-
set (WEBSOCKETPP_PLATFORM_LIBS pthread rt)
156-
else()
157-
if (HAIKU)
154+
if (APPLE)
155+
set (WEBSOCKETPP_PLATFORM_LIBS pthread)
156+
elseif (HAIKU)
158157
set (WEBSOCKETPP_PLATFORM_LIBS pthread network)
159158
else()
160-
set (WEBSOCKETPP_PLATFORM_LIBS pthread)
161-
endif()
159+
set (WEBSOCKETPP_PLATFORM_LIBS pthread rt)
162160
endif()
163161
set (WEBSOCKETPP_PLATFORM_TLS_LIBS ssl crypto)
164162
set (WEBSOCKETPP_BOOST_LIBS system thread)

changelog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ HEAD
2626
HTTP message reads. Thank you Oleh Derevenko for reporting. #899
2727
- Documentation: Added language to explicitly clarify that the library
2828
license is in fact the 3-Clause BSD license. #906
29+
- Travis/CI: Updated Travis config to use newer version of ubuntu, and use
30+
CMake based build & tests.
2931
- SCons: Fix typo in SConstruct that prevented clang from getting the right
3032
value for CXXFLAGS. Thank you robinlinden for reporting and a patch. #878
3133
- SCons: Improve compatibility with Python 3. Thank you Jochen Jägers and
@@ -41,6 +43,8 @@ HEAD
4143
- CMake: Adjust CMake config to use GNUInstallDirs to choose install
4244
directories rather than hard coding. Thank you Khem Raj for reporting and
4345
a patch. #854
46+
- CMake: Improve support for building tests & examples on the Haiku platform
47+
Thank you Schrijvers Luc for reporting and the patch. #849
4448

4549
0.8.2 - 2020-04-19
4650
- Examples: Update print_client_tls example to remove use of deprecated

0 commit comments

Comments
 (0)