Sfoglia il codice sorgente

Tests: Update ModuleNotices test for new notice

Brad King 9 anni fa
parent
commit
756169ac99
1 ha cambiato i file con 5 aggiunte e 18 eliminazioni
  1. 5 18
      Tests/CMakeTests/ModuleNoticesTest.cmake.in

+ 5 - 18
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}")