From c80b2706781c83bbb6d49fcebac1ce33333d2c73 Mon Sep 17 00:00:00 2001 From: Alexander Alekhin Date: Tue, 21 Dec 2021 16:34:48 +0000 Subject: [PATCH] cmake: force lowercase plugins internal names --- modules/core/CMakeLists.txt | 1 + modules/highgui/cmake/init.cmake | 1 + modules/videoio/CMakeLists.txt | 1 + 3 files changed, 3 insertions(+) diff --git a/modules/core/CMakeLists.txt b/modules/core/CMakeLists.txt index 51a0abbfe8..b78bb98162 100644 --- a/modules/core/CMakeLists.txt +++ b/modules/core/CMakeLists.txt @@ -27,6 +27,7 @@ set(PARALLEL_ENABLE_PLUGINS "${PARALLEL_ENABLE_PLUGINS_DEFAULT}" CACHE BOOL "All # TODO building plugins with OpenCV is not supported yet #set(PARALLEL_PLUGIN_LIST "" CACHE STRING "List of parallel backends to be compiled as plugins (tbb, openmp or special value 'all')") #string(REPLACE "," ";" PARALLEL_PLUGIN_LIST "${PARALLEL_PLUGIN_LIST}") # support comma-separated list (,) too +#string(TOLOWER "${PARALLEL_PLUGIN_LIST}" PARALLEL_PLUGIN_LIST) ocv_add_module(core diff --git a/modules/highgui/cmake/init.cmake b/modules/highgui/cmake/init.cmake index 2002ff0e9d..0b4178c868 100644 --- a/modules/highgui/cmake/init.cmake +++ b/modules/highgui/cmake/init.cmake @@ -8,6 +8,7 @@ if(PROJECT_NAME STREQUAL "OpenCV") mark_as_advanced(HIGHGUI_PLUGIN_LIST HIGHGUI_ENABLE_PLUGINS) string(REPLACE "," ";" HIGHGUI_PLUGIN_LIST "${HIGHGUI_PLUGIN_LIST}") # support comma-separated list (,) too + string(TOLOWER "${HIGHGUI_PLUGIN_LIST}" HIGHGUI_PLUGIN_LIST) if(NOT HIGHGUI_ENABLE_PLUGINS) if(HIGHGUI_PLUGIN_LIST) message(WARNING "HighGUI: plugins are disabled through HIGHGUI_ENABLE_PLUGINS, so HIGHGUI_PLUGIN_LIST='${HIGHGUI_PLUGIN_LIST}' is ignored") diff --git a/modules/videoio/CMakeLists.txt b/modules/videoio/CMakeLists.txt index 98127d1c98..377029f45f 100644 --- a/modules/videoio/CMakeLists.txt +++ b/modules/videoio/CMakeLists.txt @@ -8,6 +8,7 @@ set(VIDEOIO_ENABLE_PLUGINS "${VIDEOIO_ENABLE_PLUGINS_DEFAULT}" CACHE BOOL "Allow mark_as_advanced(VIDEOIO_PLUGIN_LIST VIDEOIO_ENABLE_PLUGINS) string(REPLACE "," ";" VIDEOIO_PLUGIN_LIST "${VIDEOIO_PLUGIN_LIST}") # support comma-separated list (,) too +string(TOLOWER "${VIDEOIO_PLUGIN_LIST}" VIDEOIO_PLUGIN_LIST) if(NOT VIDEOIO_ENABLE_PLUGINS) if(VIDEOIO_PLUGIN_LIST) message(WARNING "VideoIO: plugins are disabled through VIDEOIO_ENABLE_PLUGINS, so VIDEOIO_PLUGIN_LIST='${VIDEOIO_PLUGIN_LIST}' is ignored")