diff --git a/CMakeLists.txt b/CMakeLists.txt index 35bfaf2f3d..e941f59a34 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -107,13 +107,13 @@ endif() # to find include files from these locations first if(MINGW) if(EXISTS /mingw) - list(APPEND CMAKE_LIBRARY_PATH /mingw) + list(APPEND CMAKE_INCLUDE_PATH /mingw) endif() if(EXISTS /mingw32) - list(APPEND CMAKE_LIBRARY_PATH /mingw32) + list(APPEND CMAKE_INCLUDE_PATH /mingw32) endif() if(EXISTS /mingw64) - list(APPEND CMAKE_LIBRARY_PATH /mingw64) + list(APPEND CMAKE_INCLUDE_PATH /mingw64) endif() endif()