endif()
endif()
- list(APPEND CMAKE_LIBRARY_PATH /mingw)
+# Add these standard paths to the search paths for FIND_PATH
+# to find include files from these locations first
+if(MINGW)
+ if(EXISTS /mingw)
- list(APPEND CMAKE_LIBRARY_PATH /mingw32)
++ list(APPEND CMAKE_INCLUDE_PATH /mingw)
+ endif()
+ if(EXISTS /mingw32)
- list(APPEND CMAKE_LIBRARY_PATH /mingw64)
++ list(APPEND CMAKE_INCLUDE_PATH /mingw32)
+ endif()
+ if(EXISTS /mingw64)
++ list(APPEND CMAKE_INCLUDE_PATH /mingw64)
+ endif()
+endif()
# ----------------------------------------------------------------------------
# OpenCV cmake options