blob: 518fe8a042bd1395e9894db04b4aff7ced91af7c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
# Remove build steps related to static libs.
# Bug: https://bugs.gentoo.org/934412
--- a/libairspyhf/src/CMakeLists.txt
+++ b/libairspyhf/src/CMakeLists.txt
@@ -46,16 +46,7 @@ add_library(airspyhf SHARED ${c_sources} ${AIRSPYHF_DLL_SRCS})
set_target_properties(airspyhf PROPERTIES VERSION ${AIRSPYHF_VER_MAJOR}.${AIRSPYHF_VER_MINOR}.${AIRSPYHF_VER_REVISION})
set_target_properties(airspyhf PROPERTIES SOVERSION 0)
-# Static library
-add_library(airspyhf-static STATIC ${c_sources})
-if(MSVC)
- set_target_properties(airspyhf-static PROPERTIES OUTPUT_NAME "airspyhf_static")
-else()
- set_target_properties(airspyhf-static PROPERTIES OUTPUT_NAME "airspyhf")
-endif()
-
set_target_properties(airspyhf PROPERTIES CLEAN_DIRECT_OUTPUT 1)
-set_target_properties(airspyhf-static PROPERTIES CLEAN_DIRECT_OUTPUT 1)
# Dependencies
target_link_libraries(airspyhf ${LIBUSB_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT})
@@ -71,10 +62,6 @@ if( ${UNIX} )
LIBRARY DESTINATION lib${LIB_SUFFIX}
COMPONENT sharedlibs
)
- install(TARGETS airspyhf-static
- ARCHIVE DESTINATION lib${LIB_SUFFIX}
- COMPONENT staticlibs
- )
install(FILES ${c_headers}
DESTINATION include/${PROJECT_NAME}
COMPONENT headers
@@ -86,10 +73,6 @@ if( ${WIN32} )
DESTINATION bin
COMPONENT sharedlibs
)
- install(TARGETS airspyhf-static
- DESTINATION bin
- COMPONENT staticlibs
- )
install(FILES ${c_headers}
DESTINATION include/${PROJECT_NAME}
COMPONENT headers
|