Skip to content
Snippets Groups Projects
Commit d5c2b3a8 authored by Joan Vallvé Navarro's avatar Joan Vallvé Navarro
Browse files

gtest disable pthreads

parent bce82689
No related branches found
No related tags found
2 merge requests!23after cmake refactor,!22Resolve "Adapt to wolf core CMakeLists.txt refactor"
Pipeline #10934 failed
This commit is part of merge request !23. Comments created here will be created in the context of that merge request.
...@@ -5,16 +5,8 @@ if(${CMAKE_VERSION} VERSION_LESS "3.11.0") ...@@ -5,16 +5,8 @@ if(${CMAKE_VERSION} VERSION_LESS "3.11.0")
include(ExternalProject) include(ExternalProject)
set(GTEST_FORCE_SHARED_CRT ON) set(GTEST_FORCE_SHARED_CRT ON)
set(GTEST_DISABLE_PTHREADS OFF) set(GTEST_DISABLE_PTHREADS ON) # without this in ubuntu 18.04 we get linking errors
# For some reason I need to disable PTHREADS
# with g++ (Ubuntu 4.9.3-8ubuntu2~14.04) 4.9.3
# This is a known issue for MinGW :
# https://github.com/google/shaderc/pull/174
#if(MINGW)
# set(GTEST_DISABLE_PTHREADS ON)
#endif()
# Download GoogleTest # Download GoogleTest
ExternalProject_Add(googletest ExternalProject_Add(googletest
GIT_REPOSITORY https://github.com/google/googletest.git GIT_REPOSITORY https://github.com/google/googletest.git
...@@ -64,6 +56,7 @@ else() ...@@ -64,6 +56,7 @@ else()
GIT_TAG main) GIT_TAG main)
#FetchContent_MakeAvailable(googletest) #FetchContent_MakeAvailable(googletest)
# Disable installation of googletest: https://stackoverflow.com/questions/65527126/disable-install-for-fetchcontent
FetchContent_GetProperties(googletest) FetchContent_GetProperties(googletest)
if(NOT googletest_POPULATED) if(NOT googletest_POPULATED)
FetchContent_Populate(googletest) FetchContent_Populate(googletest)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment