mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: Add libexpected.
* gnu/packages/cpp.scm (libexpected): New variable. * gnu/packages/patches/libexpected-nofetch.patch: Add patch. * gnu/local.mk: Reference patch.
This commit is contained in:
parent
635fefa049
commit
937bc58414
3 changed files with 66 additions and 0 deletions
27
gnu/packages/patches/libexpected-nofetch.patch
Normal file
27
gnu/packages/patches/libexpected-nofetch.patch
Normal file
|
@ -0,0 +1,27 @@
|
|||
Description: Disable FetchContent module
|
||||
No online operations are permitted during build package.
|
||||
Author: Nicholas Guriev <guriev-ns@ya.ru>
|
||||
Last-Update: Wed, 22 Jan 2020 21:51:33 +0300
|
||||
|
||||
Modified by Brett Gilio <brettg@gnu.org> on Dec 5, 2020
|
||||
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -4,16 +4,7 @@ project(tl-expected VERSION 1.0.0 LANGUAGES CXX)
|
||||
|
||||
option(EXPECTED_ENABLE_TESTS "Enable tests." ON)
|
||||
|
||||
-include(FetchContent)
|
||||
-FetchContent_Declare(
|
||||
- tl_cmake
|
||||
- GIT_REPOSITORY https://github.com/TartanLlama/tl-cmake.git
|
||||
-)
|
||||
-FetchContent_GetProperties(tl_cmake)
|
||||
-if(NOT tl_cmake_POPULATED)
|
||||
- FetchContent_Populate(tl_cmake)
|
||||
- set(CMAKE_MODULE_PATH ${tl_cmake_SOURCE_DIR} ${CMAKE_MODULE_PATH})
|
||||
-endif()
|
||||
+set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake/tl-cmake ${CMAKE_MODULE_PATH})
|
||||
include(add-tl)
|
||||
|
||||
tl_add_library(expected SOURCES
|
Loading…
Add table
Add a link
Reference in a new issue