Files
Cayetano Santos 55ea500d01 gnu: abc: Update to 1.01-0.21b2d89.
* gnu/packages/patches/abc-tests.patch: New file.
* gnu/local.mk (dist_patch_DATA): Register patch.
* gnu/packages/electronics.scm (abc): Update to 1.01-0.21b2d89.
[source]: Add ’patch and ’snippet.
[build-system]: Switch to cmake-build-system.
[arguments]<#:configure-flags>: Add.
<#:license-file-regexp>: Delete.
<#:tests?>: Delete.
<#:phases>: Restore ’configure; add ’install-license.
[inputs]: Move after ’arguments.
[native-inputs]: Add googletest and perl.
[license]: Update.

Merges guix/guix!9095

Change-Id: Ib86e1977b46d3bb7607d48525f21a3eaa39e78b6
2026-06-10 09:32:37 +02:00

47 lines
1.4 KiB
Diff

From bf99566d041b8131e263a879d83057dc6b0c5a6f Mon Sep 17 00:00:00 2001
Message-ID: <bf99566d041b8131e263a879d83057dc6b0c5a6f.1780653867.git.csantosb@inventati.org>
From: Cayetano Santos <csantosb@inventati.org>
Date: Fri, 5 Jun 2026 11:34:34 +0200
Subject: [PATCH] test
---
CMakeLists.txt | 24 +++++++++++++-----------
1 file changed, 13 insertions(+), 11 deletions(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index bbb153e64..60f9aebdf 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -117,14 +117,16 @@ set_property(TARGET libabc-pic PROPERTY OUTPUT_NAME abc-pic)
if(NOT DEFINED ABC_SKIP_TESTS)
enable_testing()
- include(FetchContent)
- FetchContent_Declare(
- googletest
- DOWNLOAD_EXTRACT_TIMESTAMP TRUE
- # Specify the commit you depend on and update it regularly.
- URL "https://github.com/google/googletest/archive/refs/tags/v1.14.0.zip"
- )
- FetchContent_MakeAvailable(googletest)
- include(GoogleTest)
- add_subdirectory(test)
-endif()
\ No newline at end of file
+ # include(FetchContent)
+ # FetchContent_Declare(
+ # googletest
+ # DOWNLOAD_EXTRACT_TIMESTAMP TRUE
+ # # Specify the commit you depend on and update it regularly.
+ # URL "https://github.com/google/googletest/archive/refs/tags/v1.14.0.zip"
+ # )
+ # FetchContent_MakeAvailable(googletest)
+ # include(GoogleTest)
+ find_package(GTest)
+ add_library(gtest_main ALIAS GTest::gtest_main)
+ add_subdirectory(test)
+endif()
--
2.54.0