[CMake] Avoid calling FPHSA multiple time in FindPerlModules.cmake
authorannulen@yandex.ru <annulen@yandex.ru@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 12 Mar 2020 21:33:42 +0000 (21:33 +0000)
committerannulen@yandex.ru <annulen@yandex.ru@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 12 Mar 2020 21:33:42 +0000 (21:33 +0000)
https://bugs.webkit.org/show_bug.cgi?id=208948

Reviewed by Michael Catanzaro.

* Source/cmake/FindPerlModules.cmake:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@258358 268f45cc-cd09-0410-ab3c-d52691b4dbfc

ChangeLog
Source/cmake/FindPerlModules.cmake

index e882960..55a3154 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2020-03-12  Konstantin Tokarev  <annulen@yandex.ru>
+
+        [CMake] Avoid calling FPHSA multiple time in FindPerlModules.cmake
+        https://bugs.webkit.org/show_bug.cgi?id=208948
+
+        Reviewed by Michael Catanzaro.
+
+        * Source/cmake/FindPerlModules.cmake:
+
 2020-03-09  Don Olmstead  <don.olmstead@sony.com>
 
         Add script to search for feature defines
index 93a31fe..1f695fc 100644 (file)
@@ -58,19 +58,12 @@ if (PERL_EXECUTABLE)
             OUTPUT_QUIET
             ERROR_QUIET
         )
-        string(REPLACE "::" "_" _comp_sanitised "${_comp}")
         if (_result EQUAL 0)
-            set(PerlModules_${_comp_sanitised}_FOUND TRUE)
+            set(PerlModules_${_comp}_FOUND TRUE)
         else ()
-            set(PerlModules_${_comp_sanitised}_FOUND FALSE)
+            set(PerlModules_${_comp}_FOUND FALSE)
             set(PerlModules_all_modules_found FALSE)
         endif ()
-        find_package_handle_standard_args(PerlModules_${_comp}
-            FOUND_VAR
-                PerlModules_${_comp}_FOUND
-            REQUIRED_VARS
-                PerlModules_${_comp_sanitised}_FOUND
-            )
     endforeach ()
 endif ()