Skip to content

Commit 6ab5045

Browse files
committed
Fix minor CMake compatibility issues
1 parent 422a9b3 commit 6ab5045

File tree

4 files changed

+7
-1
lines changed

4 files changed

+7
-1
lines changed

Diff for: CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
########################################################################
22
# Project setup
33
########################################################################
4-
cmake_minimum_required(VERSION 2.8.9)
4+
cmake_minimum_required(VERSION 2.8.12)
55
project(SoapyPlutoSDR CXX)
66

77
# select build type to get optimization flags

Diff for: FindLibAD9361.cmake

+2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ find_library(LibAD9361_LIBRARY NAMES ad9361 libad9361
2525
set(LibAD9361_VERSION ${PC_LibAD9361_VERSION})
2626

2727
include(FindPackageHandleStandardArgs)
28+
# Note that `FOUND_VAR LibIIO_FOUND` is needed for cmake 3.2 and older.
2829
find_package_handle_standard_args(LibAD9361
30+
FOUND_VAR LibAD9361_FOUND
2931
REQUIRED_VARS LibAD9361_LIBRARY LibAD9361_INCLUDE_DIR
3032
VERSION_VAR LibAD9361_VERSION)
3133

Diff for: FindLibIIO.cmake

+2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ find_library(LibIIO_LIBRARY NAMES iio libiio
2525
set(LibIIO_VERSION ${PC_LibIIO_VERSION})
2626

2727
include(FindPackageHandleStandardArgs)
28+
# Note that `FOUND_VAR LibIIO_FOUND` is needed for cmake 3.2 and older.
2829
find_package_handle_standard_args(LibIIO
30+
FOUND_VAR LibIIO_FOUND
2931
REQUIRED_VARS LibIIO_LIBRARY LibIIO_INCLUDE_DIR
3032
VERSION_VAR LibIIO_VERSION)
3133

Diff for: FindLibUSB.cmake

+2
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,9 @@ set(LibUSB_VERSION ${PC_LibUSB_VERSION})
4444
include(FindPackageHandleStandardArgs)
4545
# handle the QUIETLY and REQUIRED arguments and set LibUSB_FOUND to TRUE
4646
# if all listed variables are TRUE
47+
# Note that `FOUND_VAR LibIIO_FOUND` is needed for cmake 3.2 and older.
4748
find_package_handle_standard_args(LibUSB
49+
FOUND_VAR LibUSB_FOUND
4850
REQUIRED_VARS LibUSB_LIBRARY LibUSB_INCLUDE_DIR
4951
VERSION_VAR LibUSB_VERSION)
5052

0 commit comments

Comments
 (0)