diff options
author | Jacek Antonelli | 2008-09-06 18:24:57 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-09-06 18:25:07 -0500 |
commit | 798d367d54a6c6379ad355bd8345fa40e31e7fe9 (patch) | |
tree | 1921f1708cd0240648c97bc02df2c2ab5f2fc41e /linden/indra/cmake/MySQL.cmake | |
parent | Second Life viewer sources 1.20.15 (diff) | |
download | meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.zip meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.gz meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.bz2 meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.xz |
Second Life viewer sources 1.21.0-RC
Diffstat (limited to 'linden/indra/cmake/MySQL.cmake')
-rw-r--r-- | linden/indra/cmake/MySQL.cmake | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/linden/indra/cmake/MySQL.cmake b/linden/indra/cmake/MySQL.cmake new file mode 100644 index 0000000..97dd091 --- /dev/null +++ b/linden/indra/cmake/MySQL.cmake | |||
@@ -0,0 +1,23 @@ | |||
1 | # -*- cmake -*- | ||
2 | include(Linking) | ||
3 | include(Prebuilt) | ||
4 | # We don't prebuild our own MySQL client library. | ||
5 | |||
6 | use_prebuilt_binary(mysql) | ||
7 | |||
8 | set(MYSQL_FIND_QUIETLY ON) | ||
9 | set(MYSQL_FIND_REQUIRED ON) | ||
10 | |||
11 | if (WINDOWS) | ||
12 | set(MYSQL_LIBRARIES mysqlclient) | ||
13 | set(MYSQL_INCLUDE_DIR ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/include) | ||
14 | elseif (DARWIN) | ||
15 | set(MYSQL_INCLUDE_DIR ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/include) | ||
16 | set(MYSQL_LIBRARIES | ||
17 | optimized ${LIBS_PREBUILT_DIRS_RELEASE}/libmysqlclient.a | ||
18 | debug ${LIBS_PREBUILT_DIRS_DEBUG}/libmysqlclient.a | ||
19 | ) | ||
20 | else (WINDOWS) | ||
21 | set(MYSQL_FIND_REQUIRED) | ||
22 | include(FindMySQL) | ||
23 | endif (WINDOWS) | ||