From 2c85aa543c3fc84780a7ae58c8e486528c63f355 Mon Sep 17 00:00:00 2001 From: Andrey Kamaev Date: Mon, 23 Apr 2012 08:54:15 +0000 Subject: [PATCH] Make ocv_include_directories a function to minimize problems with windows backslashes --- cmake/OpenCVUtils.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake/OpenCVUtils.cmake b/cmake/OpenCVUtils.cmake index 687ce4f..fdb151f 100644 --- a/cmake/OpenCVUtils.cmake +++ b/cmake/OpenCVUtils.cmake @@ -12,7 +12,7 @@ if(NOT COMMAND find_host_program) endif() #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 "") foreach(dir ${ARGN}) get_filename_component(__abs_dir "${dir}" ABSOLUTE) @@ -23,7 +23,7 @@ macro(ocv_include_directories) endif() endforeach() include_directories(BEFORE ${__add_before}) -endmacro() +endfunction() # Provides an option that the user can optionally select. -- 2.7.4