From ce02738d7f2f2688eeec7004dd6a30293d36044f Mon Sep 17 00:00:00 2001 From: Alexander Barkov Date: Fri, 31 Jan 2014 13:52:29 +0400 Subject: [PATCH] Adding a new command into CMakeLists.txt: SET(CMAKE_INCLUDE_DIRECTORIES_PROJECT_BEFORE ON) to find header files from the bundled libraries (jemalloc, yassl, readline, pcre, etc) before the ones installed in the system. --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index dfa63cb8c92..e431f3e027b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -260,6 +260,11 @@ ENDIF() # Run platform tests INCLUDE(configure.cmake) +# Find header files from the bundled libraries +# (jemalloc, yassl, readline, pcre, etc) +# before the ones installed in the system +SET(CMAKE_INCLUDE_DIRECTORIES_PROJECT_BEFORE ON) + # Common defines and includes ADD_DEFINITIONS(-DHAVE_CONFIG_H) INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR}/include)