File: debian-source-cml

package info (click to toggle)
codec2 1.0.5-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 121,056 kB
  • sloc: ansic: 414,118; sh: 2,612; objc: 2,574; python: 2,105; cpp: 2,091; asm: 683; makefile: 598
file content (48 lines) | stat: -rw-r--r-- 1,659 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
From 6e18651d7204b618501db3dcb3de700ac00f4f42 Mon Sep 17 00:00:00 2001
From: "A. Maitland Bottoms" <bottoms@debian.org>
Date: Sun, 17 Jul 2022 17:22:01 -0400
Subject: [PATCH 4/4] debian source cml

Debian source packages include cml source, so use it rather
than let CMake fetch it from the git repository.
---
 CMakeLists.txt          | 2 +-
 unittest/CMakeLists.txt | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 998af5dd..4fd313d1 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1241,6 +1241,6 @@ endif(NOT APPLE)
         test_OFDM_modem_datac3_octave
         test_fsk_lib_4fsk_ldpc
         PROPERTIES
-        ENVIRONMENT "CML_PATH=${CMAKE_CURRENT_BINARY_DIR}/cml"
+        ENVIRONMENT "CML_PATH=${PROJECT_SOURCE_DIR}/cml"
     )
 endif(UNITTEST)
diff --git a/unittest/CMakeLists.txt b/unittest/CMakeLists.txt
index 3186d346..ebde38f2 100644
--- a/unittest/CMakeLists.txt
+++ b/unittest/CMakeLists.txt
@@ -102,13 +102,13 @@ find_program(OCTAVE_CMD octave-cli REQUIRED)
 message("Octave command: ${OCTAVE_CMD}")
 
 include(ExternalProject)
-set(CML_PATH ${CMAKE_CURRENT_BINARY_DIR}/../cml)
+set(CML_PATH ${CMAKE_CURRENT_BINARY_DIR}/../../cml)
 ExternalProject_Add(cml
-   GIT_REPOSITORY https://github.com/drowe67/cml.git
+   # GIT_REPOSITORY https://github.com/drowe67/cml.git
    SOURCE_DIR ${CML_PATH}
    BUILD_IN_SOURCE 1
    CONFIGURE_COMMAND true # No configuration required
-   BUILD_COMMAND cd ${CMAKE_CURRENT_BINARY_DIR}/../cml && make
+   BUILD_COMMAND cd ${CMAKE_CURRENT_BINARY_DIR}/../../cml && make
    INSTALL_COMMAND true # No installation required
 )
 
-- 
2.35.1