From 2b25ec13d8a32360b5c1a9bee2de24485f5217a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=A4kel=C3=A4?= Date: Wed, 7 Feb 2018 17:34:10 +0200 Subject: [PATCH] Include the connector directory in the right place The directory where the headers are located should be included only after the connector is built or found. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5fc6e8057..298afbc4f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -50,12 +50,12 @@ find_package(ASAN) include(cmake/BuildPCRE2.cmake) include_directories(BEFORE ${PCRE2_INCLUDE_DIRS}) -include_directories(BEFORE ${MARIADB_CONNECTOR_INCLUDE_DIR}) # If the connector was not found, download and build it from source if(NOT MARIADB_CONNECTOR_FOUND) message(STATUS "Building MariaDB Connector-C from source.") include(cmake/BuildMariaDBConnector.cmake) + include_directories(BEFORE ${MARIADB_CONNECTOR_INCLUDE_DIR}) else() # This is required as the core depends on the `connector-c` target add_custom_target(connector-c)