summaryrefslogtreecommitdiffstats
path: root/host/lib
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2011-03-28 13:44:36 -0700
committerJosh Blum <josh@joshknows.com>2011-03-28 13:44:36 -0700
commit69d19fedd3fd7945a21daac0ae14c06fee78ee91 (patch)
tree995f7959fa0a4047a7bf777dc4275f4e85a98a99 /host/lib
parentc6c4b01e09efc037aa44dbf8cdba1c705747bd2f (diff)
downloaduhd-69d19fedd3fd7945a21daac0ae14c06fee78ee91.tar.gz
uhd-69d19fedd3fd7945a21daac0ae14c06fee78ee91.tar.bz2
uhd-69d19fedd3fd7945a21daac0ae14c06fee78ee91.zip
uhd: various packing fixes (lib suffix, and library components)
1) setup lib suffix for fedora 64 2) specify component for all library target types (should fix missing library files problem)
Diffstat (limited to 'host/lib')
-rw-r--r--host/lib/CMakeLists.txt9
1 files changed, 4 insertions, 5 deletions
diff --git a/host/lib/CMakeLists.txt b/host/lib/CMakeLists.txt
index cb75979e8..d095255ea 100644
--- a/host/lib/CMakeLists.txt
+++ b/host/lib/CMakeLists.txt
@@ -113,14 +113,13 @@ ADD_LIBRARY(uhd SHARED ${libuhd_sources})
TARGET_LINK_LIBRARIES(uhd ${Boost_LIBRARIES} ${libuhd_libs})
SET_TARGET_PROPERTIES(uhd PROPERTIES DEFINE_SYMBOL "UHD_DLL_EXPORTS")
SET_TARGET_PROPERTIES(uhd PROPERTIES SOVERSION "${UHD_VERSION_MAJOR}")
-SET_TARGET_PROPERTIES(uhd PROPERTIES VERSION "${UHD_VERSION_MAJOR}.${UHD_VERSION_MINOR}")
+SET_TARGET_PROPERTIES(uhd PROPERTIES VERSION "${UHD_VERSION}")
IF(DEFINED LIBUHD_OUTPUT_NAME)
SET_TARGET_PROPERTIES(uhd PROPERTIES OUTPUT_NAME ${LIBUHD_OUTPUT_NAME})
ENDIF(DEFINED LIBUHD_OUTPUT_NAME)
INSTALL(TARGETS uhd
- LIBRARY DESTINATION ${LIBRARY_DIR} # .so file
- ARCHIVE DESTINATION ${LIBRARY_DIR} # .lib file
- RUNTIME DESTINATION ${LIBRARY_DIR} # .dll file
- COMPONENT libraries
+ LIBRARY DESTINATION ${LIBRARY_DIR} COMPONENT libraries # .so file
+ ARCHIVE DESTINATION ${LIBRARY_DIR} COMPONENT libraries # .lib file
+ RUNTIME DESTINATION ${LIBRARY_DIR} COMPONENT libraries # .dll file
)