diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/cmake/00-Common.cmake | 2 | ||||
-rw-r--r-- | linden/indra/cmake/APR.cmake | 20 | ||||
-rw-r--r-- | linden/indra/cmake/CopyWinLibs.cmake | 6 | ||||
-rw-r--r-- | linden/indra/cmake/LLCommon.cmake | 13 |
4 files changed, 18 insertions, 23 deletions
diff --git a/linden/indra/cmake/00-Common.cmake b/linden/indra/cmake/00-Common.cmake index 4c04be9..c3aa9ea 100644 --- a/linden/indra/cmake/00-Common.cmake +++ b/linden/indra/cmake/00-Common.cmake | |||
@@ -210,7 +210,7 @@ if (LINUX OR DARWIN) | |||
210 | set(GCC_WARNINGS "${GCC_WARNINGS} -Werror") | 210 | set(GCC_WARNINGS "${GCC_WARNINGS} -Werror") |
211 | endif (NOT GCC_DISABLE_FATAL_WARNINGS) | 211 | endif (NOT GCC_DISABLE_FATAL_WARNINGS) |
212 | 212 | ||
213 | set(GCC_CXX_WARNINGS "${GCC_WARNINGS} -Wno-reorder -Wno-non-virtual-dtor") | 213 | set(GCC_CXX_WARNINGS "${GCC_WARNINGS} -Wno-reorder -Wno-non-virtual-dtor -Woverloaded-virtual") |
214 | 214 | ||
215 | set(CMAKE_C_FLAGS "${GCC_WARNINGS} ${CMAKE_C_FLAGS}") | 215 | set(CMAKE_C_FLAGS "${GCC_WARNINGS} ${CMAKE_C_FLAGS}") |
216 | set(CMAKE_CXX_FLAGS "${GCC_CXX_WARNINGS} ${CMAKE_CXX_FLAGS}") | 216 | set(CMAKE_CXX_FLAGS "${GCC_CXX_WARNINGS} ${CMAKE_CXX_FLAGS}") |
diff --git a/linden/indra/cmake/APR.cmake b/linden/indra/cmake/APR.cmake index e9f6411..d1f0898 100644 --- a/linden/indra/cmake/APR.cmake +++ b/linden/indra/cmake/APR.cmake | |||
@@ -14,27 +14,27 @@ else (STANDALONE) | |||
14 | use_prebuilt_binary(apr_suite) | 14 | use_prebuilt_binary(apr_suite) |
15 | if (WINDOWS) | 15 | if (WINDOWS) |
16 | set(APR_LIBRARIES | 16 | set(APR_LIBRARIES |
17 | debug ${ARCH_PREBUILT_DIRS_DEBUG}/apr-1.lib | 17 | debug ${ARCH_PREBUILT_DIRS_DEBUG}/libapr-1.lib |
18 | optimized ${ARCH_PREBUILT_DIRS_RELEASE}/apr-1.lib | 18 | optimized ${ARCH_PREBUILT_DIRS_RELEASE}/libapr-1.lib |
19 | ) | 19 | ) |
20 | set(APRICONV_LIBRARIES | 20 | set(APRICONV_LIBRARIES |
21 | debug ${ARCH_PREBUILT_DIRS_DEBUG}/apriconv-1.lib | 21 | debug ${ARCH_PREBUILT_DIRS_DEBUG}/libapriconv-1.lib |
22 | optimized ${ARCH_PREBUILT_DIRS_RELEASE}/apriconv-1.lib | 22 | optimized ${ARCH_PREBUILT_DIRS_RELEASE}/libapriconv-1.lib |
23 | ) | 23 | ) |
24 | # Doesn't need to link with iconv.dll | 24 | # Doesn't need to link with iconv.dll |
25 | set(APRICONV_LIBRARIES "") | 25 | set(APRICONV_LIBRARIES "") |
26 | set(APRUTIL_LIBRARIES | 26 | set(APRUTIL_LIBRARIES |
27 | debug ${ARCH_PREBUILT_DIRS_DEBUG}/aprutil-1.lib ${APRICONV_LIBRARIES} | 27 | debug ${ARCH_PREBUILT_DIRS_DEBUG}/libaprutil-1.lib ${APRICONV_LIBRARIES} |
28 | optimized ${ARCH_PREBUILT_DIRS_RELEASE}/aprutil-1.lib ${APRICONV_LIBRARIES} | 28 | optimized ${ARCH_PREBUILT_DIRS_RELEASE}/libaprutil-1.lib ${APRICONV_LIBRARIES} |
29 | ) | 29 | ) |
30 | elseif (DARWIN) | 30 | elseif (DARWIN) |
31 | set(APR_LIBRARIES | 31 | set(APR_LIBRARIES |
32 | debug ${ARCH_PREBUILT_DIRS_DEBUG}/libapr-1.a | 32 | debug ${ARCH_PREBUILT_DIRS_DEBUG}/libapr-1.0.3.7.dylib |
33 | optimized ${ARCH_PREBUILT_DIRS_RELEASE}/libapr-1.a | 33 | optimized ${ARCH_PREBUILT_DIRS_RELEASE}/libapr-1.0.3.7.dylib |
34 | ) | 34 | ) |
35 | set(APRUTIL_LIBRARIES | 35 | set(APRUTIL_LIBRARIES |
36 | debug ${ARCH_PREBUILT_DIRS_DEBUG}/libaprutil-1.a | 36 | debug ${ARCH_PREBUILT_DIRS_DEBUG}/libaprutil-1.0.3.8.dylib |
37 | optimized ${ARCH_PREBUILT_DIRS_RELEASE}/libaprutil-1.a | 37 | optimized ${ARCH_PREBUILT_DIRS_RELEASE}/libaprutil-1.0.3.8.dylib |
38 | ) | 38 | ) |
39 | set(APRICONV_LIBRARIES iconv) | 39 | set(APRICONV_LIBRARIES iconv) |
40 | else (WINDOWS) | 40 | else (WINDOWS) |
diff --git a/linden/indra/cmake/CopyWinLibs.cmake b/linden/indra/cmake/CopyWinLibs.cmake index a091a31..f584689 100644 --- a/linden/indra/cmake/CopyWinLibs.cmake +++ b/linden/indra/cmake/CopyWinLibs.cmake | |||
@@ -29,6 +29,9 @@ set(debug_files | |||
29 | openal32.dll | 29 | openal32.dll |
30 | openjpegd.dll | 30 | openjpegd.dll |
31 | libhunspell.dll | 31 | libhunspell.dll |
32 | libapr-1.dll | ||
33 | libaprutil-1.dll | ||
34 | libapriconv-1.dll | ||
32 | ) | 35 | ) |
33 | 36 | ||
34 | copy_if_different( | 37 | copy_if_different( |
@@ -209,6 +212,9 @@ set(release_files | |||
209 | openal32.dll | 212 | openal32.dll |
210 | openjpeg.dll | 213 | openjpeg.dll |
211 | libhunspell.dll | 214 | libhunspell.dll |
215 | libapr-1.dll | ||
216 | libaprutil-1.dll | ||
217 | libapriconv-1.dll | ||
212 | ) | 218 | ) |
213 | 219 | ||
214 | copy_if_different( | 220 | copy_if_different( |
diff --git a/linden/indra/cmake/LLCommon.cmake b/linden/indra/cmake/LLCommon.cmake index 9158e98..410766e 100644 --- a/linden/indra/cmake/LLCommon.cmake +++ b/linden/indra/cmake/LLCommon.cmake | |||
@@ -12,15 +12,4 @@ set(LLCOMMON_INCLUDE_DIRS | |||
12 | ${Boost_INCLUDE_DIRS} | 12 | ${Boost_INCLUDE_DIRS} |
13 | ) | 13 | ) |
14 | 14 | ||
15 | # Files that need PIC code (pluginAPI) need to set REQUIRE_PIC on 64bit systems | 15 | set(LLCOMMON_LIBRARIES llcommon) |
16 | # this will link against a llcommon built with Position Independent Code | ||
17 | # this is a requirment to link a static library (.a) to a DSO on 64 bit systems | ||
18 | |||
19 | if(REQUIRE_PIC) | ||
20 | set(LLCOMMON_LIBRARIES llcommonPIC) | ||
21 | else(REQUIRE_PIC) | ||
22 | set(LLCOMMON_LIBRARIES llcommon) | ||
23 | endif(REQUIRE_PIC) | ||
24 | |||
25 | #force clear the flag, files that need this must explicity set it themselves | ||
26 | set(REQUIRE_PIC 0) \ No newline at end of file | ||