Skip to content

Commit

Permalink
Allow to compile using g++ on Mac OS X
Browse files Browse the repository at this point in the history
Add the conditions in the CMakeList.txt file in order to compile on Mac OS X
using g++ .

Signed-off-by: Luca Palano <github@lpzone.it>
  • Loading branch information
lucapalano committed Jun 19, 2019
1 parent 72e2760 commit f3261c2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,11 @@ if (BUILD_TESTS OR BUILD_EXAMPLES)

# g++
if (CMAKE_COMPILER_IS_GNUCXX)
set (WEBSOCKETPP_PLATFORM_LIBS pthread rt)
if (NOT APPLE)
set (WEBSOCKETPP_PLATFORM_LIBS pthread rt)
else()
set (WEBSOCKETPP_PLATFORM_LIBS pthread)
endif()
set (WEBSOCKETPP_PLATFORM_TLS_LIBS ssl crypto)
set (WEBSOCKETPP_BOOST_LIBS system thread)
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x")
Expand Down

0 comments on commit f3261c2

Please sign in to comment.