summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-09-27 18:12:58 (GMT)
committerBrad King <brad.king@kitware.com>2016-09-27 19:18:07 (GMT)
commit756169ac99e65e34a4b5bb1f7348b14eea2e3521 (patch)
tree4de11dd8e76d9ed66404dbbbe939fc27fd6c2ed7 /Tests
parent845d86bce391b0028ecda8747c365cb8b57824a0 (diff)
downloadCMake-756169ac99e65e34a4b5bb1f7348b14eea2e3521.zip
CMake-756169ac99e65e34a4b5bb1f7348b14eea2e3521.tar.gz
CMake-756169ac99e65e34a4b5bb1f7348b14eea2e3521.tar.bz2
Tests: Update ModuleNotices test for new notice
Diffstat (limited to 'Tests')
-rw-r--r--Tests/CMakeTests/ModuleNoticesTest.cmake.in23
1 files changed, 5 insertions, 18 deletions
diff --git a/Tests/CMakeTests/ModuleNoticesTest.cmake.in b/Tests/CMakeTests/ModuleNoticesTest.cmake.in
index 7bea0af..7ae6607 100644
--- a/Tests/CMakeTests/ModuleNoticesTest.cmake.in
+++ b/Tests/CMakeTests/ModuleNoticesTest.cmake.in
@@ -1,21 +1,8 @@
-# Regex to match copyright/license notices.
-# We require the Kitware copyright on the first line, but this can
-# match any additional copyright holder notices.
-set(notice_regex "
-#=============================================================================
-# Copyright (20[0-9][0-9]-)?20[0-9][0-9] [^\n]+(
-# Copyright (20[0-9][0-9]-)?20[0-9][0-9] [^\n]+)*
-#
-# Distributed under the OSI-approved BSD License \\(the \"License\"\\);
-# see accompanying file Copyright\\.txt for details\\.
-#
-# This software is distributed WITHOUT ANY WARRANTY; without even the
-# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE\\.
-# See the License for more information\\.
-#=============================================================================
-# \\(To distribute this file outside of CMake, substitute the full
-# License text for the above reference.\\)
-")
+# Regex to match license notices at the top of module files.
+set(notice_regex [[^# Distributed under the OSI-approved BSD 3-Clause License\. See accompanying
+# file Copyright\.txt or https://cmake\.org/licensing for details\.
+
+]])
string(REPLACE "\n" "\r?\n" notice_regex "${notice_regex}")
string(REPLACE "\r\r" "\r" notice_regex "${notice_regex}")