30 lines
950 B
Diff
30 lines
950 B
Diff
|
From 589f726562dbd7f1dc0145deb00a768a6e924808 Mon Sep 17 00:00:00 2001
|
||
|
From: "Ankur Sinha (Ankur Sinha Gmail)" <sanjay.ankur@gmail.com>
|
||
|
Date: Sun, 17 Feb 2019 18:27:19 +0000
|
||
|
Subject: [PATCH 1/7] Use copyright
|
||
|
|
||
|
---
|
||
|
CMake/UseCopyright.cmake | 6 ++++--
|
||
|
1 file changed, 4 insertions(+), 2 deletions(-)
|
||
|
|
||
|
diff --git a/CMake/UseCopyright.cmake b/CMake/UseCopyright.cmake
|
||
|
index fb4fe1fad..b66736522 100644
|
||
|
--- a/CMake/UseCopyright.cmake
|
||
|
+++ b/CMake/UseCopyright.cmake
|
||
|
@@ -18,8 +18,10 @@ macro(APPEND_COPYRIGHT)
|
||
|
# need to raise an error if COPYRIGHT_MODULE_FILENAME is not set...
|
||
|
if(EXISTS ${COPYRIGHT_MODULE_FILENAME} )
|
||
|
foreach(filename ${ARGN})
|
||
|
- file(READ ${filename} content)
|
||
|
- file(APPEND ${COPYRIGHT_MODULE_FILENAME} ${content})
|
||
|
+ if(EXISTS ${filename} )
|
||
|
+ file(READ ${filename} content)
|
||
|
+ file(APPEND ${COPYRIGHT_MODULE_FILENAME} ${content})
|
||
|
+ endif()
|
||
|
endforeach()
|
||
|
endif()
|
||
|
endmacro()
|
||
|
--
|
||
|
2.20.1
|
||
|
|