Skip to content

Commit

Permalink
Fix Raspberry Pi build
Browse files Browse the repository at this point in the history
  • Loading branch information
ruslo committed Aug 31, 2017
1 parent 857e625 commit e54b4e2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion googletest/cmake/internal_utils.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ macro(config_compiler_and_linker)
# instead, we use windows threading primitives
if (NOT gtest_disable_pthreads AND NOT MINGW)
# Defines CMAKE_USE_PTHREADS_INIT and CMAKE_THREAD_LIBS_INIT.
set(THREADS_PREFER_PTHREAD_FLAG ON)
if(NOT RASPBERRY_PI)
set(THREADS_PREFER_PTHREAD_FLAG ON)
endif()
find_package(Threads)
endif()

Expand Down

0 comments on commit e54b4e2

Please sign in to comment.