Skip to content

Commit

Permalink
Update CMakeLists.txt (#17)
Browse files Browse the repository at this point in the history
- Fix cross-compilation issue for `pthread`
  • Loading branch information
p0fi authored and guangie88 committed Mar 28, 2018
1 parent b18c857 commit f5dafb3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ endif()

# allow thread library to be used for linking
set(THREADS_PREFER_PTHREAD_FLAG ON)
set(THREADS_PTHREAD_ARG "0" CACHE STRING "Result from TRY_RUN" FORCE)
find_package(Threads REQUIRED)

add_compile_options("$<$<CONFIG:DEBUG>:${DEBUG_FLAGS}>")
Expand Down

0 comments on commit f5dafb3

Please sign in to comment.