Adds CMake conditional to disable pthreads on MinGW builds of gtest.
This commit is contained in:
parent
908d38ebef
commit
036428e525
@ -1,5 +1,10 @@
|
|||||||
set(gtest_force_shared_crt ${MSVC_SHARED_RT} CACHE BOOL
|
set(gtest_force_shared_crt ${MSVC_SHARED_RT} CACHE BOOL
|
||||||
"Use shared (DLL) run-time lib even when Google Test built as a static lib.")
|
"Use shared (DLL) run-time lib even when Google Test built as a static lib.")
|
||||||
|
|
||||||
|
if(MINGW)
|
||||||
|
set(gtest_disable_pthreads ON)
|
||||||
|
endif()
|
||||||
|
|
||||||
add_subdirectory(gmock-1.7.0)
|
add_subdirectory(gmock-1.7.0)
|
||||||
include_directories(SYSTEM gmock-1.7.0/gtest/include)
|
include_directories(SYSTEM gmock-1.7.0/gtest/include)
|
||||||
include_directories(SYSTEM gmock-1.7.0/include)
|
include_directories(SYSTEM gmock-1.7.0/include)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user