Skip to content

Commit

Permalink
Merge pull request #342 from william76/disable-gtest-pthreads
Browse files Browse the repository at this point in the history
Disable Pthreads in Gtest
  • Loading branch information
ndellingwood committed Nov 6, 2018
2 parents bb73a9d + ed69b36 commit b26f446
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions unit_test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ INCLUDE_DIRECTORIES(REQUIRED_DURING_INSTALLATION_TESTING ${CMAKE_CURRENT_SOURCE_
# the following relative path does not work or users should put kokkoskernels and kokkos
# at the same place
SET(GTEST_SOURCE_DIR ${${PARENT_PACKAGE_NAME}_SOURCE_DIR}/../kokkos/tpls/gtest)
# Disables pthreads, this is a problem for serial builds in Trilinos & Sierra if it's enabled.
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DGTEST_HAS_PTHREAD=0")
INCLUDE_DIRECTORIES(${GTEST_SOURCE_DIR})

INCLUDE_DIRECTORIES(${GTEST_SOURCE_DIR})
Expand Down

0 comments on commit b26f446

Please sign in to comment.