Debian Codegraph @

debian/patches/0005-Fix-list_licenses-macro.patch

raw symbols SCIP
1 Fromscip-debian debian filament 1.9.25+dfsg3-3 filament/patches/`0005-Fix-list_licenses-macro.patch`#From.: =?utf-8?q?Timo_R=C3=B6hling?= <[email protected]scip-debian . . . identity/`[email protected]`.>
2 Datescip-debian debian filament 1.9.25+dfsg3-3 filament/patches/`0005-Fix-list_licenses-macro.patch`#Date.: Sat, 23 Oct 2021 19:20:10 +0200
3 Subjectscip-debian debian filament 1.9.25+dfsg3-3 filament/patches/`0005-Fix-list_licenses-macro.patch`#Subject.: Fix list_licenses macro
4
5 ---
6 CMakeLists.txt | 12 +++++++-----
7 1 file changed, 7 insertions(+), 5 deletions(-)
8
9 diff --git a/CMakeLists.txtscip-debian debian filament 1.9.25+dfsg3-3 filament/upstream/`CMakeLists.txt`: b/CMakeLists.txtscip-debian debian filament 1.9.25+dfsg3-3 filament/upstream/`CMakeLists.txt`:
10 index 55c48e4..f8d164e 100644
11 --- a/CMakeLists.txt
12 +++ b/CMakeLists.txt
13 @@ -475,11 +475,13 @@ function(list_licenses OUTPUT MODULES)
14 foreach(module ${_MODULES})
15 set(license_path "../../third_party/${module}/LICENSE")
16 get_filename_component(fullname "${license_path}" ABSOLUTE)
17 - string(APPEND CONTENT "${STR_OPENER}License and copyrights for ${module}:\n${STR_CLOSER},\n")
18 - file(READ ${license_path} license_long)
19 - string(REPLACE "\n" "${STR_CLOSER},\n${STR_OPENER}" license ${license_long})
20 - string(APPEND CONTENT ${STR_OPENER}${license}\n${STR_CLOSER},)
21 - string(APPEND CONTENT "\n\n")
22 + if(EXISTS ${license_path})
23 + string(APPEND CONTENT "${STR_OPENER}License and copyrights for ${module}:\n${STR_CLOSER},\n")
24 + file(READ ${license_path} license_long)
25 + string(REPLACE "\n" "${STR_CLOSER},\n${STR_OPENER}" license ${license_long})
26 + string(APPEND CONTENT ${STR_OPENER}${license}\n${STR_CLOSER},)
27 + string(APPEND CONTENT "\n\n")
28 + endif()
29 endforeach()
30 configure_file(${FILAMENT}/build/licenses.inc.in ${OUTPUT})
31 endfunction(list_licenses)