Make ocv_include_directories a function to minimize problems with windows backslashes
This commit is contained in:
parent
9eded52ce5
commit
2c85aa543c
@ -12,7 +12,7 @@ if(NOT COMMAND find_host_program)
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
#added include directories in such way that directories from the OpenCV source tree go first
|
#added include directories in such way that directories from the OpenCV source tree go first
|
||||||
macro(ocv_include_directories)
|
function(ocv_include_directories)
|
||||||
set(__add_before "")
|
set(__add_before "")
|
||||||
foreach(dir ${ARGN})
|
foreach(dir ${ARGN})
|
||||||
get_filename_component(__abs_dir "${dir}" ABSOLUTE)
|
get_filename_component(__abs_dir "${dir}" ABSOLUTE)
|
||||||
@ -23,7 +23,7 @@ macro(ocv_include_directories)
|
|||||||
endif()
|
endif()
|
||||||
endforeach()
|
endforeach()
|
||||||
include_directories(BEFORE ${__add_before})
|
include_directories(BEFORE ${__add_before})
|
||||||
endmacro()
|
endfunction()
|
||||||
|
|
||||||
|
|
||||||
# Provides an option that the user can optionally select.
|
# Provides an option that the user can optionally select.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user