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
This commit is contained in:
Vladislav Vinogradov 2015-01-16 11:00:56 +03:00
parent df57d038b8
commit 698c367d8d

View File

@ -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