mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-15 20:25:17 +03:00
24 lines
744 B
Diff
24 lines
744 B
Diff
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -177,20 +177,8 @@
|
|
# Tests
|
|
|
|
if (BUILD_TESTING)
|
|
- include(FetchContent)
|
|
- FetchContent_Declare(
|
|
- googletest
|
|
- URL https://github.com/google/googletest/archive/609281088cfefc76f9d0ce82e1ff6c30cc3591e5.zip
|
|
- )
|
|
- # For Windows: Prevent overriding the parent project's compiler/linker settings
|
|
- set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)
|
|
- FetchContent_GetProperties(googletest)
|
|
- if(NOT googletest_POPULATED)
|
|
- FetchContent_Populate(googletest)
|
|
- add_subdirectory(${googletest_SOURCE_DIR} ${googletest_BINARY_DIR})
|
|
- endif()
|
|
-
|
|
enable_testing()
|
|
+ link_libraries("-Wl,--copy-dt-needed-entries")
|
|
|
|
set(TEST_NAME ${PROJECT_NAME}_tests)
|
|
|