mirror of
https://github.com/opencv/opencv.git
synced 2024-11-28 13:10:12 +08:00
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
df57d038b8
commit
698c367d8d
@ -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…
Reference in New Issue
Block a user