From ec270633fa56aaeb35fe8a168a5e706596c9103f Mon Sep 17 00:00:00 2001 From: Laura Canalini <44258837+lauracanalini@users.noreply.github.com> Date: Wed, 16 Mar 2022 18:52:12 +0100 Subject: [PATCH] Add pthread flag in CMakeLists.txt needed for GPU building --- tests/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 71941ffd1..5bad6a714 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -39,6 +39,7 @@ if(MSVC) else() find_package(Threads REQUIRED) target_link_libraries(${PROJECT_TESTS_NAME} PUBLIC eddl ${GTEST_LIBRARIES} ${GTEST_MAIN_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT}) + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pthread") endif()