From 5e12a2b955390e973473fb5b0993d4eeac2e14dd Mon Sep 17 00:00:00 2001 From: Jorge Marques Date: Tue, 23 Jun 2026 09:40:33 +0200 Subject: [PATCH 1/4] CMake: raise minimum version Increase CMake minimum required version to 3.10 to avoid warnings on modern CMake about pre-3.10 legacy behavior, and support to CMake 4. Signed-off-by: Jorge Marques --- CMakeLists.txt | 2 +- bindings/csharp/CMakeLists.txt | 2 +- bindings/labview/CMakeLists.txt | 2 +- bindings/python/CMakeLists.txt | 2 +- doc/CMakeLists.txt | 2 +- examples/CMakeLists.txt | 2 +- examples/analog/CMakeLists.txt | 2 +- examples/digital/CMakeLists.txt | 2 +- examples/powersupply/CMakeLists.txt | 2 +- examples/voltmeter/CMakeLists.txt | 2 +- src/CMakeLists.txt | 2 +- tools/CMakeLists.txt | 2 +- tools/communication/examples/CMakeLists.txt | 2 +- tools/communication/examples/i2c/CMakeLists.txt | 2 +- tools/communication/examples/spi/CMakeLists.txt | 2 +- tools/communication/examples/uart/CMakeLists.txt | 2 +- tools/m2kcli/CMakeLists.txt | 2 +- 17 files changed, 17 insertions(+), 17 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4aaa77c4..3aa5cd8a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -18,7 +18,7 @@ # along with this program. If not, see . # -cmake_minimum_required(VERSION 3.5) +cmake_minimum_required(VERSION 3.10) if(NOT ${CMAKE_VERSION} VERSION_LESS "3.18.0") # https://cmake.org/cmake/help/v3.18/policy/CMP0068.html diff --git a/bindings/csharp/CMakeLists.txt b/bindings/csharp/CMakeLists.txt index d18c775b..06488cde 100644 --- a/bindings/csharp/CMakeLists.txt +++ b/bindings/csharp/CMakeLists.txt @@ -18,7 +18,7 @@ # along with this program. If not, see . # -cmake_minimum_required(VERSION 3.5) +cmake_minimum_required(VERSION 3.10) set(CSHARP_WRAPPER_DLL ${PROJECT_NAME}-sharp-cxx-wrap) diff --git a/bindings/labview/CMakeLists.txt b/bindings/labview/CMakeLists.txt index b7105f02..1d12ee61 100644 --- a/bindings/labview/CMakeLists.txt +++ b/bindings/labview/CMakeLists.txt @@ -18,7 +18,7 @@ # along with this program. If not, see . # -cmake_minimum_required(VERSION 3.5) +cmake_minimum_required(VERSION 3.10) set (CMAKE_CXX_STANDARD 11) #Find libiio and link it to the targets generated by this project diff --git a/bindings/python/CMakeLists.txt b/bindings/python/CMakeLists.txt index 324b2d80..e553ec13 100644 --- a/bindings/python/CMakeLists.txt +++ b/bindings/python/CMakeLists.txt @@ -18,7 +18,7 @@ # along with this program. If not, see . # -cmake_minimum_required(VERSION 3.5) +cmake_minimum_required(VERSION 3.10) set(CMAKE_EXPORT_COMPILE_COMMANDS ON CACHE INTERNAL "") set(CMAKE_VERBOSE_MAKEFILE ON) diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt index ec42bc01..b80d0a1d 100644 --- a/doc/CMakeLists.txt +++ b/doc/CMakeLists.txt @@ -18,7 +18,7 @@ # along with this program. If not, see . # -cmake_minimum_required(VERSION 3.5) +cmake_minimum_required(VERSION 3.10) project(doc) find_program(DOXYGEN_PATH doxygen) diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt index c269cf04..d35813e0 100644 --- a/examples/CMakeLists.txt +++ b/examples/CMakeLists.txt @@ -18,7 +18,7 @@ # along with this program. If not, see . # -cmake_minimum_required(VERSION 3.5) +cmake_minimum_required(VERSION 3.10) add_subdirectory(analog) add_subdirectory(digital) diff --git a/examples/analog/CMakeLists.txt b/examples/analog/CMakeLists.txt index 291840fb..2e92bc55 100644 --- a/examples/analog/CMakeLists.txt +++ b/examples/analog/CMakeLists.txt @@ -18,7 +18,7 @@ # along with this program. If not, see . # -cmake_minimum_required(VERSION 3.5) +cmake_minimum_required(VERSION 3.10) set (CMAKE_CXX_STANDARD 11) project(analog LANGUAGES CXX) diff --git a/examples/digital/CMakeLists.txt b/examples/digital/CMakeLists.txt index 20383538..c5990397 100644 --- a/examples/digital/CMakeLists.txt +++ b/examples/digital/CMakeLists.txt @@ -18,7 +18,7 @@ # along with this program. If not, see . # -cmake_minimum_required(VERSION 3.5) +cmake_minimum_required(VERSION 3.10) set (CMAKE_CXX_STANDARD 11) project(digital LANGUAGES CXX) diff --git a/examples/powersupply/CMakeLists.txt b/examples/powersupply/CMakeLists.txt index 8978ccf4..d78733a2 100644 --- a/examples/powersupply/CMakeLists.txt +++ b/examples/powersupply/CMakeLists.txt @@ -18,7 +18,7 @@ # along with this program. If not, see . # -cmake_minimum_required(VERSION 3.5) +cmake_minimum_required(VERSION 3.10) set (CMAKE_CXX_STANDARD 11) project(powersupply LANGUAGES CXX) diff --git a/examples/voltmeter/CMakeLists.txt b/examples/voltmeter/CMakeLists.txt index 07267c0a..550d9c8d 100644 --- a/examples/voltmeter/CMakeLists.txt +++ b/examples/voltmeter/CMakeLists.txt @@ -18,7 +18,7 @@ # along with this program. If not, see . # -cmake_minimum_required(VERSION 3.5) +cmake_minimum_required(VERSION 3.10) set (CMAKE_CXX_STANDARD 11) project(voltmeter LANGUAGES CXX) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 472c5700..42f2c9af 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -18,7 +18,7 @@ # along with this program. If not, see . # -cmake_minimum_required(VERSION 3.5) +cmake_minimum_required(VERSION 3.10) option(OSX_PACKAGE "Create OSX package" OFF) set(BUILD_SHARED_LIBS ON CACHE BOOL "Build shared libraries") diff --git a/tools/CMakeLists.txt b/tools/CMakeLists.txt index 62f19e00..90dc5b8c 100644 --- a/tools/CMakeLists.txt +++ b/tools/CMakeLists.txt @@ -18,7 +18,7 @@ # along with this program. If not, see . # -cmake_minimum_required(VERSION 3.5) +cmake_minimum_required(VERSION 3.10) add_subdirectory(m2kcli) add_subdirectory(communication/examples) diff --git a/tools/communication/examples/CMakeLists.txt b/tools/communication/examples/CMakeLists.txt index e19bd36f..ea54e2c7 100644 --- a/tools/communication/examples/CMakeLists.txt +++ b/tools/communication/examples/CMakeLists.txt @@ -18,7 +18,7 @@ # along with this program. If not, see . # -cmake_minimum_required(VERSION 3.5) +cmake_minimum_required(VERSION 3.10) add_subdirectory(spi) add_subdirectory(i2c) diff --git a/tools/communication/examples/i2c/CMakeLists.txt b/tools/communication/examples/i2c/CMakeLists.txt index 91bc0224..38e0ed40 100644 --- a/tools/communication/examples/i2c/CMakeLists.txt +++ b/tools/communication/examples/i2c/CMakeLists.txt @@ -18,7 +18,7 @@ # along with this program. If not, see . # -cmake_minimum_required(VERSION 3.5) +cmake_minimum_required(VERSION 3.10) set(CMAKE_CXX_STANDARD 11) diff --git a/tools/communication/examples/spi/CMakeLists.txt b/tools/communication/examples/spi/CMakeLists.txt index 264a1ed6..5483c907 100644 --- a/tools/communication/examples/spi/CMakeLists.txt +++ b/tools/communication/examples/spi/CMakeLists.txt @@ -18,7 +18,7 @@ # along with this program. If not, see . # -cmake_minimum_required(VERSION 3.5) +cmake_minimum_required(VERSION 3.10) set(CMAKE_CXX_STANDARD 11) diff --git a/tools/communication/examples/uart/CMakeLists.txt b/tools/communication/examples/uart/CMakeLists.txt index 463d6f22..ccf3346b 100644 --- a/tools/communication/examples/uart/CMakeLists.txt +++ b/tools/communication/examples/uart/CMakeLists.txt @@ -18,7 +18,7 @@ # along with this program. If not, see . # -cmake_minimum_required(VERSION 3.5) +cmake_minimum_required(VERSION 3.10) set(CMAKE_CXX_STANDARD 11) diff --git a/tools/m2kcli/CMakeLists.txt b/tools/m2kcli/CMakeLists.txt index f986a905..aa1ea2d9 100644 --- a/tools/m2kcli/CMakeLists.txt +++ b/tools/m2kcli/CMakeLists.txt @@ -19,7 +19,7 @@ # * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # * */ -cmake_minimum_required(VERSION 3.5) +cmake_minimum_required(VERSION 3.10) set(CMAKE_CXX_STANDARD 11) From bb583f024850b06e2fc8603664be8df625605ee9 Mon Sep 17 00:00:00 2001 From: Nicu Siderias Date: Sat, 27 Jun 2026 15:24:51 +0300 Subject: [PATCH 2/4] Update GitHub Actions to use newer action versions --- .github/workflows/build_wheels.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build_wheels.yml b/.github/workflows/build_wheels.yml index 59160c6b..2b62414e 100644 --- a/.github/workflows/build_wheels.yml +++ b/.github/workflows/build_wheels.yml @@ -15,8 +15,8 @@ jobs: python_version: ['3.11'] steps: - - uses: actions/checkout@v4 - - uses: actions/setup-python@v4 + - uses: actions/checkout@v7 + - uses: actions/setup-python@v6 name: Install Python ${{ matrix.python_version }} with: python-version: ${{ matrix.python_version }} @@ -31,7 +31,7 @@ jobs: python -m pip install cibuildwheel twine cibuildwheel --output-dir ${{ github.workspace }}/wheelhouse ${{ github.workspace }}/build env: - CIBW_DEBUG_KEEP_CONTAINER=: TRUE + CIBW_DEBUG_KEEP_CONTAINER: "TRUE" CIBW_MANYLINUX_X86_64_IMAGE: manylinux_2_28 CIBW_MANYLINUX_AARCH64_IMAGE: manylinux_2_28 # Skip building PyPy wheels on all platforms @@ -41,9 +41,9 @@ jobs: CIBW_BUILD_VERBOSITY: 3 CIBW_BEFORE_ALL: > cd {project} && ./.github/scripts/install_deps.sh {package} - CIBW_BUILD: "cp37-* cp38-* cp39-* cp310-* cp311-* cp312-*" + CIBW_BUILD: "cp39-* cp310-* cp311-* cp312-* cp313-*" CIBW_ENVIRONMENT: COMPILE_BINDINGS="True" - - uses: actions/upload-artifact@v4 + - uses: actions/upload-artifact@v7 with: name: manylinux_wheels path: ${{ github.workspace }}/wheelhouse @@ -54,12 +54,12 @@ jobs: needs: [build_wheels] if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') steps: - - uses: actions/checkout@v2 - - uses: actions/setup-python@v2 + - uses: actions/checkout@v7 + - uses: actions/setup-python@v6 name: Install Python 3.11 with: python-version: '3.11' - - uses: actions/download-artifact@v4.1.7 + - uses: actions/download-artifact@v7 with: name: manylinux_wheels - name: Upload to PyPI From 15e7158a824998f6f3bc877faedad029f31a73ab Mon Sep 17 00:00:00 2001 From: Nicu Siderias Date: Sat, 27 Jun 2026 15:31:51 +0300 Subject: [PATCH 3/4] Update install_deps.sh --- .github/scripts/install_deps.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/scripts/install_deps.sh b/.github/scripts/install_deps.sh index 43d36407..5843071e 100755 --- a/.github/scripts/install_deps.sh +++ b/.github/scripts/install_deps.sh @@ -27,9 +27,9 @@ cd ../.. #Install glog echo "## Building glog" -git clone --branch v0.4.0 --depth 1 https://github.com/google/glog -mkdir -p glog/build_0_4_0 -cd glog/build_0_4_0 +git clone --branch v0.7.1 --depth 1 https://github.com/google/glog +mkdir -p glog/build_0_7_1 +cd glog/build_0_7_1 cmake -DCMAKE_PREFIX_PATH=/usr .. make make install From 94fb7036f0541e6d655d80610b3eb04aea580a69 Mon Sep 17 00:00:00 2001 From: Nicu Siderias Date: Sat, 27 Jun 2026 15:47:58 +0300 Subject: [PATCH 4/4] Update Doxygen deployment to use Ubuntu 22.04 --- azure-pipelines.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index cc775ca5..68ba422a 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -43,10 +43,10 @@ jobs: OS_VERSION: jammy artifactName: 'Linux-Ubuntu-22.04' deploy_doxygen: - imageName: 'ubuntu-20.04' + imageName: 'ubuntu-22.04' OS_TYPE: 'doxygen' OS_VERSION: focal - artifactName: 'Linux-Ubuntu-20.04' + artifactName: 'Linux-Ubuntu-22.04' pool: vmImage: $(imageName) steps: