BuildSystem/Macros: Revert FindMySQL.cmake changes from ea96a5d888 - handled with simple if-tests instead

BuildSystem: Adjust buildfiles so that they reflect their proper parameters (will change when we've cleaned it up even more)

--HG--
branch : trunk
This commit is contained in:
click
2010-09-08 14:40:45 +02:00
parent 47bead14d7
commit 4faf53881f
5 changed files with 90 additions and 96 deletions
+10
View File
@@ -1,9 +1,19 @@
# Platform-specfic options
option(EXTERNAL_MYSQL "Use your own installed MySQL instead of the internal one" 0)
# Package overloads
set(ACE_INCLUDE_DIR ${CMAKE_SOURCE_DIR}/dep/acelite)
set(ACE_LIBRARY "ace")
set(BZIP2_LIBRARIES "bzip2")
set(ZLIB_LIBRARIES "zlib")
if( 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( EXTERNAL_MYSQL )
# check the CMake preload parameters (commented out by default)
# overload CMAKE_INSTALL_PREFIX if not being set properly