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:
parent
9cadc1e530
commit
12a3eb776d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user