commit: 21dcf273f2cc3859844a71e52cc5fecd63cfa9e5 Author: Alfredo Tupone <tupone <AT> gentoo <DOT> org> AuthorDate: Tue May 10 16:12:54 2022 +0000 Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org> CommitDate: Tue May 10 16:12:54 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=21dcf273
dev-libs/pthreadpool: drop gtest download Closes: https://bugs.gentoo.org/843593 Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org> .../files/pthreadpool-2022.05.09-gentoo.patch | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/dev-libs/pthreadpool/files/pthreadpool-2022.05.09-gentoo.patch b/dev-libs/pthreadpool/files/pthreadpool-2022.05.09-gentoo.patch index 3c2edfa1ca8a..a818eaabc1a1 100644 --- a/dev-libs/pthreadpool/files/pthreadpool-2022.05.09-gentoo.patch +++ b/dev-libs/pthreadpool/files/pthreadpool-2022.05.09-gentoo.patch @@ -1,6 +1,6 @@ --- a/CMakeLists.txt 2022-05-09 12:38:59.927116924 +0200 +++ b/CMakeLists.txt 2022-05-09 12:39:39.141532680 +0200 -@@ -37,12 +38,6 @@ +@@ -37,22 +37,10 @@ # ---[ Download deps IF(NOT DEFINED FXDIV_SOURCE_DIR) @@ -13,6 +13,16 @@ SET(FXDIV_SOURCE_DIR "${CMAKE_BINARY_DIR}/FXdiv-source" CACHE STRING "FXdiv source directory") ENDIF() + IF(PTHREADPOOL_BUILD_TESTS AND NOT DEFINED GOOGLETEST_SOURCE_DIR) +- MESSAGE(STATUS "Downloading Google Test to ${CMAKE_BINARY_DIR}/googletest-source (define GOOGLETEST_SOURCE_DIR to avoid it)") +- CONFIGURE_FILE(cmake/DownloadGoogleTest.cmake "${CMAKE_BINARY_DIR}/googletest-download/CMakeLists.txt") +- EXECUTE_PROCESS(COMMAND "${CMAKE_COMMAND}" -G "${CMAKE_GENERATOR}" . +- WORKING_DIRECTORY "${CMAKE_BINARY_DIR}/googletest-download") +- EXECUTE_PROCESS(COMMAND "${CMAKE_COMMAND}" --build . +- WORKING_DIRECTORY "${CMAKE_BINARY_DIR}/googletest-download") + SET(GOOGLETEST_SOURCE_DIR "${CMAKE_BINARY_DIR}/googletest-source" CACHE STRING "Google Test source directory") + ENDIF() + @@ -153,11 +143,7 @@ IF(NOT TARGET fxdiv) SET(FXDIV_BUILD_TESTS OFF CACHE BOOL "") @@ -25,3 +35,13 @@ INSTALL(TARGETS pthreadpool LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} +@@ -157,9 +151,6 @@ + # ---[ Build google test + IF(NOT TARGET gtest) + SET(gtest_force_shared_crt ON CACHE BOOL "" FORCE) +- ADD_SUBDIRECTORY( +- "${GOOGLETEST_SOURCE_DIR}" +- "${CMAKE_BINARY_DIR}/googletest") + ENDIF() + + ADD_EXECUTABLE(pthreadpool-test test/pthreadpool.cc)
