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
pull/3610/head
Vladislav Vinogradov 10 years ago
parent df57d038b8
commit 698c367d8d
  1. 1
      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

Loading…
Cancel
Save