diff options
author | Michael Schroeder <mls@suse.de> | 2012-12-19 15:36:51 +0100 |
---|---|---|
committer | Michael Schroeder <mls@suse.de> | 2012-12-19 15:36:51 +0100 |
commit | f663ca28a932aae94d39eed04627b5f029ef139d (patch) | |
tree | 29a6198d22c9f5c84ae4204b98a05bf2931d8034 | |
parent | 21c2f796cf57cb4810cfa52c2c6f762b4ed01a8e (diff) | |
download | libsolv-f663ca28a932aae94d39eed04627b5f029ef139d.tar.gz libsolv-f663ca28a932aae94d39eed04627b5f029ef139d.tar.bz2 libsolv-f663ca28a932aae94d39eed04627b5f029ef139d.zip |
link libsolvext against the system libraries
-rw-r--r-- | ext/CMakeLists.txt | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/ext/CMakeLists.txt b/ext/CMakeLists.txt index d956284..ad18f2d 100644 --- a/ext/CMakeLists.txt +++ b/ext/CMakeLists.txt @@ -74,10 +74,22 @@ ENDIF (ENABLE_CUDFREPO) SET (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC") SET (CMAKE_SHARED_LINKER_FLAGS "${LINK_FLAGS} -Wl,--version-script=${CMAKE_SOURCE_DIR}/ext/libsolvext.ver") +SET (SYSTEM_LIBRARIES ${EXPAT_LIBRARY} ${ZLIB_LIBRARY}) +IF (ENABLE_LZMA_COMPRESSION) +SET (SYSTEM_LIBRARIES ${SYSTEM_LIBRARIES} ${LZMA_LIBRARY}) +ENDIF (ENABLE_LZMA_COMPRESSION) +IF (ENABLE_BZIP2_COMPRESSION) +SET (SYSTEM_LIBRARIES ${SYSTEM_LIBRARIES} ${BZIP2_LIBRARIES}) +ENDIF (ENABLE_BZIP2_COMPRESSION) +IF (ENABLE_RPMDB) +SET (SYSTEM_LIBRARIES ${RPMDB_LIBRARY} ${SYSTEM_LIBRARIES}) +ENDIF (ENABLE_RPMDB) + IF (DISABLE_SHARED) ADD_LIBRARY (libsolvext STATIC ${libsolvext_SRCS}) ELSE (DISABLE_SHARED) ADD_LIBRARY (libsolvext SHARED ${libsolvext_SRCS}) +TARGET_LINK_LIBRARIES(libsolvext ${SYSTEM_LIBRARIES}) ENDIF (DISABLE_SHARED) SET_TARGET_PROPERTIES(libsolvext PROPERTIES OUTPUT_NAME "solvext") |