Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports-kde
Path: blob/main/comms/airspy/files/patch-libairspy_src_CMakeLists.txt
16461 views
1
--- libairspy/src/CMakeLists.txt.orig 2018-06-24 20:11:21 UTC
2
+++ libairspy/src/CMakeLists.txt
3
@@ -58,15 +58,14 @@ set_target_properties(airspy PROPERTIES
4
endif( ${WIN32} )
5
6
# Static library
7
-add_library(airspy-static STATIC ${c_sources})
8
if(MSVC)
9
set_target_properties(airspy-static PROPERTIES OUTPUT_NAME "airspy_static")
10
else()
11
- set_target_properties(airspy-static PROPERTIES OUTPUT_NAME "airspy")
12
+ set_target_properties(airspy PROPERTIES OUTPUT_NAME "airspy")
13
endif()
14
15
set_target_properties(airspy PROPERTIES CLEAN_DIRECT_OUTPUT 1)
16
-set_target_properties(airspy-static PROPERTIES CLEAN_DIRECT_OUTPUT 1)
17
+set_target_properties(airspy PROPERTIES CLEAN_DIRECT_OUTPUT 1)
18
19
# Dependencies
20
target_link_libraries(airspy ${LIBUSB_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT})
21
@@ -82,10 +81,10 @@ if( ${UNIX} )
22
LIBRARY DESTINATION lib${LIB_SUFFIX}
23
COMPONENT sharedlibs
24
)
25
- install(TARGETS airspy-static
26
- ARCHIVE DESTINATION lib${LIB_SUFFIX}
27
- COMPONENT staticlibs
28
- )
29
+ #install(TARGETS airspy-static
30
+ # ARCHIVE DESTINATION lib${LIB_SUFFIX}
31
+ # COMPONENT staticlibs
32
+ # )
33
install(FILES ${c_headers}
34
DESTINATION include/${PROJECT_NAME}
35
COMPONENT headers
36
@@ -97,10 +96,10 @@ if( ${WIN32} )
37
DESTINATION bin
38
COMPONENT sharedlibs
39
)
40
- install(TARGETS airspy-static
41
- DESTINATION bin
42
- COMPONENT staticlibs
43
- )
44
+ #install(TARGETS airspy-static
45
+ # DESTINATION bin
46
+ # COMPONENT staticlibs
47
+ # )
48
install(FILES ${c_headers}
49
DESTINATION include/${PROJECT_NAME}
50
COMPONENT headers
51
52