mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 21:38:07 -05:00
dc07a4ce6c
* gnu/packages/cpp.scm (crc32c): New variable. * gnu/packages/patches/crc32c-unbundle-googletest.patch: New file. * gnu/local.mk (dist_patch_DATA): Register it here. Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
21 lines
755 B
Diff
21 lines
755 B
Diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index 8490728..c7f0952 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -315,15 +315,7 @@ if(CRC32C_BUILD_TESTS)
|
|
set(install_gmock OFF)
|
|
|
|
# This project is tested using GoogleTest.
|
|
- add_subdirectory("third_party/googletest")
|
|
-
|
|
- # GoogleTest triggers a missing field initializers warning.
|
|
- if(CRC32C_HAVE_NO_MISSING_FIELD_INITIALIZERS)
|
|
- set_property(TARGET gtest
|
|
- APPEND PROPERTY COMPILE_OPTIONS -Wno-missing-field-initializers)
|
|
- set_property(TARGET gmock
|
|
- APPEND PROPERTY COMPILE_OPTIONS -Wno-missing-field-initializers)
|
|
- endif(CRC32C_HAVE_NO_MISSING_FIELD_INITIALIZERS)
|
|
+ find_package(GTest REQUIRED)
|
|
|
|
add_executable(crc32c_tests "")
|
|
target_sources(crc32c_tests
|