diff options
author | runningnak3d <none@none> | 2010-09-08 09:18:00 -0600 |
---|---|---|
committer | runningnak3d <none@none> | 2010-09-08 09:18:00 -0600 |
commit | a9d5e03343b7ccec178e65f6ad4ce3553c897504 (patch) | |
tree | b73072e695aff115ffdf514cb0ea07ed4046d24b /cmake/platform/settings.unix.cmake | |
parent | f1699a05dca10b350344e1ba2f61d869184113c5 (diff) |
BuildSystem/Linux: Fix using internal MySQL headers when EXTERNAL_MYSQL not
specified
--HG--
branch : trunk
Diffstat (limited to 'cmake/platform/settings.unix.cmake')
-rw-r--r-- | cmake/platform/settings.unix.cmake | 9 |
1 files changed, 9 insertions, 0 deletions
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" |