From a9d5e03343b7ccec178e65f6ad4ce3553c897504 Mon Sep 17 00:00:00 2001 From: runningnak3d Date: Wed, 8 Sep 2010 09:18:00 -0600 Subject: BuildSystem/Linux: Fix using internal MySQL headers when EXTERNAL_MYSQL not specified --HG-- branch : trunk --- cmake/platform/settings.unix.cmake | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'cmake/platform/settings.unix.cmake') diff --git a/cmake/platform/settings.unix.cmake b/cmake/platform/settings.unix.cmake index 9dae9f5ca9f..11d796771c2 100644 --- a/cmake/platform/settings.unix.cmake +++ b/cmake/platform/settings.unix.cmake @@ -10,6 +10,15 @@ if( NOT LIBSDIR ) message(STATUS "UNIX: Using default library directory") endif() +# use internal MySQL headers if external is not forced +if( NOT EXTERNAL_MYSQL ) + set(MYSQL_INCLUDE_DIR ${CMAKE_SOURCE_DIR}/dep/mysqllite/include) + set(MYSQL_LIBRARY "libmysql") + set( MYSQL_FOUND 1 ) + message(STATUS "Using internal MySQL.") +endif() + + # configure uninstaller configure_file( "${CMAKE_CURRENT_SOURCE_DIR}/cmake_uninstall.cmake.in" -- cgit v1.2.3