aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llcommon/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/llcommon/CMakeLists.txt')
-rw-r--r--linden/indra/llcommon/CMakeLists.txt23
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
5include(00-Common) 5include(00-Common)
6include(LLCommon) 6include(LLCommon)
7include(Linking)
7 8
8include_directories( 9include_directories(
9 ${EXPAT_INCLUDE_DIRS} 10 ${EXPAT_INCLUDE_DIRS}
@@ -192,31 +193,13 @@ set_source_files_properties(${llcommon_HEADER_FILES}
192 193
193list(APPEND llcommon_SOURCE_FILES ${llcommon_HEADER_FILES}) 194list(APPEND llcommon_SOURCE_FILES ${llcommon_HEADER_FILES})
194 195
195add_library (llcommon ${llcommon_SOURCE_FILES}) 196add_library (llcommon SHARED ${llcommon_SOURCE_FILES})
196target_link_libraries( 197target_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
204if(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 )
221endif(HAVE_64_BIT)
222