Skip to content

Commit

Permalink
Avoid linking pthread on Android
Browse files Browse the repository at this point in the history
  • Loading branch information
rhardih committed Jan 3, 2019
1 parent 40e14b0 commit ff2535f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,9 @@ endif()
if (UNIX)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} --std=c++11")

set(LIB_pthread pthread)
if (NOT ANDROID)
set(LIB_pthread pthread)
endif()
endif()

###############################################################################
Expand Down

0 comments on commit ff2535f

Please sign in to comment.