File tree 5 files changed +15
-3
lines changed
5 files changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ if("${CMAKE_C_COMPILER_ID}" MATCHES "Clang")
101
101
endif ()
102
102
103
103
# Enable Static analysis on GCC13.2.0+
104
- if ("${CMAKE_C_COMPILER_ID} " STREQUAL "GNU" AND CMAKE_C_COMPILER_VERSION VERSION_GREATER_EQUAL "13.2.0" )
104
+ if ("${CMAKE_C_COMPILER_ID} " STREQUAL "GNU" AND NOT "13.2.0" VERSION_GREATER CMAKE_C_COMPILER_VERSION )
105
105
message (STATUS "Using GCC Static analysis" )
106
106
add_definitions (-fanalyzer)
107
107
endif ()
Original file line number Diff line number Diff line change @@ -29,7 +29,9 @@ set(LibRTLSDR_VERSION ${PC_LibRTLSDR_VERSION})
29
29
include (FindPackageHandleStandardArgs)
30
30
# handle the QUIETLY and REQUIRED arguments and set LibRTLSDR_FOUND to TRUE
31
31
# if all listed variables are TRUE
32
+ # Note that `FOUND_VAR LibRTLSDR_FOUND` is needed for cmake 3.2 and older.
32
33
find_package_handle_standard_args(LibRTLSDR
34
+ FOUND_VAR LibRTLSDR_FOUND
33
35
REQUIRED_VARS LibRTLSDR_LIBRARY LibRTLSDR_INCLUDE_DIR
34
36
VERSION_VAR LibRTLSDR_VERSION)
35
37
Original file line number Diff line number Diff line change @@ -44,7 +44,9 @@ set(LibUSB_VERSION ${PC_LibUSB_VERSION})
44
44
include (FindPackageHandleStandardArgs)
45
45
# handle the QUIETLY and REQUIRED arguments and set LibUSB_FOUND to TRUE
46
46
# if all listed variables are TRUE
47
+ # Note that `FOUND_VAR LibRTLSDR_FOUND` is needed for cmake 3.2 and older.
47
48
find_package_handle_standard_args(LibUSB
49
+ FOUND_VAR LibUSB_FOUND
48
50
REQUIRED_VARS LibUSB_LIBRARY LibUSB_INCLUDE_DIR
49
51
VERSION_VAR LibUSB_VERSION)
50
52
Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ function(git_describe _var)
111
111
if (NOT GIT_FOUND AND CMAKE_HOST_WIN32 )
112
112
# fallback to VS bundled Git
113
113
find_program (GIT_EXECUTABLE NAMES git PATH_SUFFIXES Git/cmd Git/bin)
114
- find_package_handle_standard_args(Git REQUIRED_VARS GIT_EXECUTABLE)
114
+ find_package_handle_standard_args(Git FOUND_VAR GIT_FOUND REQUIRED_VARS GIT_EXECUTABLE)
115
115
endif ()
116
116
if (NOT GIT_FOUND)
117
117
set (${_var} "GIT-NOTFOUND" PARENT_SCOPE)
@@ -156,7 +156,7 @@ function(git_timestamp _var)
156
156
if (NOT GIT_FOUND AND CMAKE_HOST_WIN32 )
157
157
# fallback to VS bundled Git
158
158
find_program (GIT_EXECUTABLE NAMES git PATH_SUFFIXES Git/cmd Git/bin)
159
- find_package_handle_standard_args(Git REQUIRED_VARS GIT_EXECUTABLE)
159
+ find_package_handle_standard_args(Git FOUND_VAR GIT_FOUND REQUIRED_VARS GIT_EXECUTABLE)
160
160
endif ()
161
161
if (NOT GIT_FOUND)
162
162
return ()
Original file line number Diff line number Diff line change @@ -94,6 +94,14 @@ E.g. use:
94
94
95
95
cmake -DENABLE_SOAPYSDR=ON ..
96
96
97
+ ::: tip
98
+ If you use CMake older than 3.13 (check ` cmake --version ` ), you need to build using e.g. ` mkdir build ; cd build ; cmake .. && cmake --build . `
99
+ :::
100
+
101
+ ::: tip
102
+ In CMake 3.6 or older the OpenSSL search seems broken, you need to use ` cmake -DENABLE_OPENSSL=NO .. `
103
+ :::
104
+
97
105
::: warning
98
106
If you experience trouble with SoapySDR when compiling or running: you likely mixed version 0.7 and version 0.8 headers and libs.
99
107
Purge all SoapySDR packages and source installation from /usr/local.
You can’t perform that action at this time.
0 commit comments