The attached patch should fix the cmake errors Sebastiaan referred to.

--
Athos Ribeiro
Description: Quote variable in cmake file to allow empy values
 Use quotes to allow empty submodules variable during the cmake build
 configuration, fixing a FTBFS issue started in noble.
Author: Athos Ribeiro <athos.ribe...@canonical.com>
Forwarded: no
Last-Update: 2024-01-20
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/cmake/modules/CTags.cmake
+++ b/cmake/modules/CTags.cmake
@@ -16,10 +16,10 @@
       OUTPUT_VARIABLE submodules
       OUTPUT_STRIP_TRAILING_WHITESPACE)
     if(${result_code} EQUAL 0)
-      string(REPLACE "${TAGS_SRC_DIR}/" "" submodules ${submodules})
+      string(REPLACE "${TAGS_SRC_DIR}/" "" submodules "${submodules}")
       # cmake list uses ";" as the delimiter, so split the string manually
       # before iterating in it.
-      string(REPLACE "\n" ";" submodules ${submodules})
+      string(REPLACE "\n" ";" submodules "${submodules}")
       list(APPEND excludes ${submodules})
     endif()
   endif()

Reply via email to