diff --git a/cpp/CMakeLists.txt b/cpp/CMakeLists.txt index 3bcb458c7..4b32b73a0 100644 --- a/cpp/CMakeLists.txt +++ b/cpp/CMakeLists.txt @@ -347,7 +347,7 @@ if (NOT WIN32) add_definitions ("-Wall -Werror") endif () -include_directories ("src") +include_directories (BEFORE "src") if (${BUILD_STATIC_LIB} STREQUAL "ON") # Build a static library (without -fPIC).