diff --git a/test/gtest/CMakeLists.txt b/test/gtest/CMakeLists.txt index 7ad86e48b378c434c66f650f591645d32320a852..2ab2b2f1d1edf044104b588b8af10fead04480ff 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()