From fdcba3b76a396a199d38973bdcc33586668bd9df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joan=20Vallv=C3=A9=20Navarro?= <jvallve@iri.upc.edu> Date: Mon, 2 May 2022 16:40:53 +0200 Subject: [PATCH] add here removed line in test/CMakeLists.txt --- test/gtest/CMakeLists.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/gtest/CMakeLists.txt b/test/gtest/CMakeLists.txt index 7ad86e48b..2ab2b2f1d 100644 --- a/test/gtest/CMakeLists.txt +++ b/test/gtest/CMakeLists.txt @@ -12,7 +12,7 @@ if(${CMAKE_VERSION} VERSION_LESS "3.11.0") # This is a known issue for MinGW : # https://github.com/google/shaderc/pull/174 #if(MINGW) - set(GTEST_DISABLE_PTHREADS ON) + # set(GTEST_DISABLE_PTHREADS ON) #endif() # Download GoogleTest @@ -52,6 +52,8 @@ if(${CMAKE_VERSION} VERSION_LESS "3.11.0") "IMPORTED_LINK_INTERFACE_LIBRARIES" "${CMAKE_THREAD_LIBS_INIT}" ) + include_directories(${GTEST_INCLUDE_DIRS}) + else() message("CMake version equal or greater than 3.11.0") @@ -71,4 +73,4 @@ function(wolf_add_gtest target) add_executable(${target} ${ARGN}) target_link_libraries(${target} gtest_main) add_test(NAME ${target} COMMAND ${target}) -endfunction() \ No newline at end of file +endfunction() -- GitLab