From 698c367d8d17f88e03415aa95107332fa03a199e Mon Sep 17 00:00:00 2001 From: Vladislav Vinogradov Date: Fri, 16 Jan 2015 11:00:56 +0300 Subject: [PATCH] fix ocv_add_module CMake macro: it tries to remove 'opencv_' prefix from 'name' variable, but it creates new variable with the same name as module --- cmake/OpenCVModule.cmake | 1 - 1 file changed, 1 deletion(-) diff --git a/cmake/OpenCVModule.cmake b/cmake/OpenCVModule.cmake index c5325e20f1..c7a3f46023 100644 --- a/cmake/OpenCVModule.cmake +++ b/cmake/OpenCVModule.cmake @@ -113,7 +113,6 @@ endmacro() macro(ocv_add_module _name) ocv_debug_message("ocv_add_module(" ${_name} ${ARGN} ")") string(TOLOWER "${_name}" name) - string(REGEX REPLACE "^opencv_" "" ${name} "${name}") set(the_module opencv_${name}) # the first pass - collect modules info, the second pass - create targets