From 12a3eb776d7e33d5404d0a1879c6ec7e6d2693f9 Mon Sep 17 00:00:00 2001 From: Vladislav Vinogradov Date: Fri, 16 Jan 2015 10:59:52 +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 b277c1ad4..17f305b13 100644 --- a/cmake/OpenCVModule.cmake +++ b/cmake/OpenCVModule.cmake @@ -106,7 +106,6 @@ endmacro() # ocv_add_module(yaom INTERNAL opencv_core opencv_highgui opencv_flann OPTIONAL opencv_gpu) macro(ocv_add_module _name) 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