diff options
Diffstat (limited to 'linden/indra/llcommon/CMakeLists.txt')
-rw-r--r-- | linden/indra/llcommon/CMakeLists.txt | 23 |
1 files changed, 3 insertions, 20 deletions
diff --git a/linden/indra/llcommon/CMakeLists.txt b/linden/indra/llcommon/CMakeLists.txt index 7d001ae..5d590a9 100644 --- a/linden/indra/llcommon/CMakeLists.txt +++ b/linden/indra/llcommon/CMakeLists.txt | |||
@@ -4,6 +4,7 @@ project(llcommon) | |||
4 | 4 | ||
5 | include(00-Common) | 5 | include(00-Common) |
6 | include(LLCommon) | 6 | include(LLCommon) |
7 | include(Linking) | ||
7 | 8 | ||
8 | include_directories( | 9 | include_directories( |
9 | ${EXPAT_INCLUDE_DIRS} | 10 | ${EXPAT_INCLUDE_DIRS} |
@@ -192,31 +193,13 @@ set_source_files_properties(${llcommon_HEADER_FILES} | |||
192 | 193 | ||
193 | list(APPEND llcommon_SOURCE_FILES ${llcommon_HEADER_FILES}) | 194 | list(APPEND llcommon_SOURCE_FILES ${llcommon_HEADER_FILES}) |
194 | 195 | ||
195 | add_library (llcommon ${llcommon_SOURCE_FILES}) | 196 | add_library (llcommon SHARED ${llcommon_SOURCE_FILES}) |
196 | target_link_libraries( | 197 | target_link_libraries( |
197 | llcommon | 198 | llcommon |
198 | ${APRUTIL_LIBRARIES} | 199 | ${APRUTIL_LIBRARIES} |
199 | ${APR_LIBRARIES} | 200 | ${APR_LIBRARIES} |
200 | ${EXPAT_LIBRARIES} | 201 | ${EXPAT_LIBRARIES} |
201 | ${ZLIB_LIBRARIES} | 202 | ${ZLIB_LIBRARIES} |
203 | ${WINDOWS_LIBRARIES} | ||
202 | ) | 204 | ) |
203 | 205 | ||
204 | if(HAVE_64_BIT) | ||
205 | add_library (llcommonPIC ${llcommon_SOURCE_FILES}) | ||
206 | add_dependencies(llcommonPIC prepare) | ||
207 | |||
208 | if(WINDOWS) | ||
209 | add_definitions(/FIXED:NO) | ||
210 | else(WINDOWS) # not windows therefore gcc LINUX and DARWIN | ||
211 | add_definitions(-fPIC) | ||
212 | endif(WINDOWS) | ||
213 | |||
214 | target_link_libraries( | ||
215 | llcommonPIC | ||
216 | ${APRUTIL_LIBRARIES} | ||
217 | ${APR_LIBRARIES} | ||
218 | ${EXPAT_LIBRARIES} | ||
219 | ${ZLIB_LIBRARIES} | ||
220 | ) | ||
221 | endif(HAVE_64_BIT) | ||
222 | |||