PageRenderTime 22ms CodeModel.GetById 17ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/indra/cmake/MySQL.cmake

https://bitbucket.org/lindenlab/viewer-beta/
CMake | 26 lines | 22 code | 2 blank | 2 comment | 3 complexity | 15f28246d62184a152cc703da49771ee MD5 | raw file
 1# -*- cmake -*-
 2include(Linking)
 3include(Prebuilt)
 4
 5use_prebuilt_binary(mysql)
 6
 7if (LINUX)
 8  if (WORD_SIZE EQUAL 32 OR DEBIAN_VERSION STREQUAL "3.1")
 9    set(MYSQL_LIBRARIES mysqlclient)
10    set(MYSQL_INCLUDE_DIR ${LIBS_PREBUILT_DIR}/include)
11  else (WORD_SIZE EQUAL 32 OR DEBIAN_VERSION STREQUAL "3.1")
12    # Use the native MySQL library on a 64-bit system.
13    set(MYSQL_FIND_QUIETLY ON)
14    set(MYSQL_FIND_REQUIRED ON)
15    include(FindMySQL)
16  endif (WORD_SIZE EQUAL 32 OR DEBIAN_VERSION STREQUAL "3.1")
17elseif (WINDOWS)
18  set(MYSQL_LIBRARIES mysqlclient)
19  set(MYSQL_INCLUDE_DIR ${LIBS_PREBUILT_DIR}/include)
20elseif (DARWIN)
21  set(MYSQL_INCLUDE_DIR ${LIBS_PREBUILT_DIR}/include)
22  set(MYSQL_LIBRARIES
23    optimized ${ARCH_PREBUILT_DIRS_RELEASE}/libmysqlclient.a
24    debug ${ARCH_PREBUILT_DIRS_DEBUG}/libmysqlclient.a
25    )
26endif (LINUX)