~ruther/guix-local

ref: 3bdc0ef2cd9cd9cbcc1aadef7d8fdf6d182e857d guix-local/gnu/packages/patches/bloomberg-bde-cmake-module-path.patch -rw-r--r-- 547 bytes
3bdc0ef2 — Tobias Geerinckx-Rice gnu: rsync: Update to 3.2.5 [fixes CVE-2022-29154]. 3 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
This package requires CMAKE_MODULE_PATH be set by the calling process. This
patch uses the CMAKE_PREFIX_PATH passed from Guix as the search path for
locating the bloomberg-bde-tools CMake modules.

--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,8 +1,6 @@
 cmake_minimum_required(VERSION 3.15)
 
-if (NOT CMAKE_MODULE_PATH)
-    message(FATAL "Please specify path to BDE cmake modules.")
-endif()
+string(REPLACE ":" "cmake/;" CMAKE_MODULE_PATH "$ENV{CMAKE_PREFIX_PATH}cmake/")
 
 get_filename_component(repoName ${CMAKE_CURRENT_LIST_DIR} NAME)