summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Barkov <bar@mnogosearch.org>2014-01-31 13:52:29 +0400
committerAlexander Barkov <bar@mnogosearch.org>2014-01-31 13:52:29 +0400
commitce02738d7f2f2688eeec7004dd6a30293d36044f (patch)
tree22c898a508422a4d68ec3894e10af4129fe25364
parent90a76ff2fabc3deca2a4514aba5e838518dd6967 (diff)
downloadmariadb-git-ce02738d7f2f2688eeec7004dd6a30293d36044f.tar.gz
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.
-rw-r--r--CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
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)