From 7077241bf5e9ee59dff06e23f6273c13e8861573 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?B=C3=A1lint=20Aradi?= Date: Wed, 13 Nov 2024 21:43:12 +0100 Subject: [PATCH] Make minor fixes in export tests --- CMakeLists.txt | 2 +- test/export/coarray/CMakeLists.txt | 6 +++--- test/export/coarray/meson.build | 1 + test/export/mpi/CMakeLists.txt | 6 +++--- test/export/mpi/meson.build | 6 +++++- test/export/serial/CMakeLists.txt | 8 ++++---- test/export/serial/meson.build | 6 +++++- 7 files changed, 22 insertions(+), 13 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0d2b7bf..d457f14 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -9,7 +9,7 @@ # Basic project definition # ]=================================================================================================] -cmake_minimum_required(VERSION 3.22...3.28) +cmake_minimum_required(VERSION 3.22...3.31) list(APPEND CMAKE_MESSAGE_CONTEXT Fortuno) diff --git a/test/export/coarray/CMakeLists.txt b/test/export/coarray/CMakeLists.txt index e5405f9..c7e4003 100644 --- a/test/export/coarray/CMakeLists.txt +++ b/test/export/coarray/CMakeLists.txt @@ -2,7 +2,7 @@ # Licensed under the BSD-2-Clause Plus Patent license. # SPDX-License-Identifier: BSD-2-Clause-Patent -cmake_minimum_required(VERSION 3.22...3.28) +cmake_minimum_required(VERSION 3.22...3.31) project( FortunoCoarray_Test_Export @@ -11,12 +11,12 @@ project( LANGUAGES Fortran ) -find_package(Fortuno REQUIRED) +find_package(Fortuno 0.1.0 EXACT REQUIRED) if (NOT TARGET Fortuno::fortuno_coarray) message(FATAL_ERROR "Fortuno library was built without the coarray interface") endif () -find_program(FYPP fypp REQUIRED) +find_program(FYPP fypp) if (FYPP) get_target_property( _fortuno_incdir diff --git a/test/export/coarray/meson.build b/test/export/coarray/meson.build index b31da0f..cf54c19 100644 --- a/test/export/coarray/meson.build +++ b/test/export/coarray/meson.build @@ -20,6 +20,7 @@ testapp_fpp_deps = [] fortuno_coarray_dep = dependency( 'fortuno_coarray', + version: '= 0.1.0', fallback: ['fortuno', 'fortuno_coarray_dep'], default_options: {'fflags_coarray': fflags_coarray, 'ldflags_coarray': ldflags_coarray}, ) diff --git a/test/export/mpi/CMakeLists.txt b/test/export/mpi/CMakeLists.txt index c855de0..bec7779 100644 --- a/test/export/mpi/CMakeLists.txt +++ b/test/export/mpi/CMakeLists.txt @@ -2,7 +2,7 @@ # Licensed under the BSD-2-Clause Plus Patent license. # SPDX-License-Identifier: BSD-2-Clause-Patent -cmake_minimum_required(VERSION 3.22...3.28) +cmake_minimum_required(VERSION 3.22...3.31) project( FortunoMpi_Test_Export @@ -12,12 +12,12 @@ project( ) find_package(MPI REQUIRED) -find_package(Fortuno REQUIRED) +find_package(Fortuno 0.1.0 EXACT REQUIRED) if (NOT TARGET Fortuno::fortuno_mpi) message(FATAL_ERROR "Fortuno library was built without the MPI interface") endif () -find_program(FYPP fypp REQUIRED) +find_program(FYPP fypp) if (FYPP) get_target_property( _fortuno_incdir diff --git a/test/export/mpi/meson.build b/test/export/mpi/meson.build index b17dd99..c4dbcd4 100644 --- a/test/export/mpi/meson.build +++ b/test/export/mpi/meson.build @@ -15,7 +15,11 @@ fortran_mpi_dep = dependency('mpi', language: 'fortran', required: true) testapp_deps += fortran_mpi_dep testapp_fpp_deps += fortran_mpi_dep -fortuno_mpi_dep = dependency('fortuno_mpi', fallback: ['fortuno', 'fortuno_mpi_dep']) +fortuno_mpi_dep = dependency( + 'fortuno_mpi', + version: '= 0.1.0', + fallback: ['fortuno', 'fortuno_mpi_dep'] +) testapp_deps += fortuno_mpi_dep testapp_fpp_deps += fortuno_mpi_dep diff --git a/test/export/serial/CMakeLists.txt b/test/export/serial/CMakeLists.txt index 631eb6e..3230056 100644 --- a/test/export/serial/CMakeLists.txt +++ b/test/export/serial/CMakeLists.txt @@ -2,17 +2,17 @@ # Licensed under the BSD-2-Clause Plus Patent license. # SPDX-License-Identifier: BSD-2-Clause-Patent -cmake_minimum_required(VERSION 3.22...3.28) +cmake_minimum_required(VERSION 3.22...3.31) project( Fortuno_Test_Export - VERSION 0.1.0 + VERSION 0.0.0 DESCRIPTION "Testing the CMake build info exported by Fortuno" LANGUAGES Fortran ) -find_package(Fortuno REQUIRED) -find_program(FYPP fypp REQUIRED) +find_package(Fortuno 0.1.0 EXACT REQUIRED) +find_program(FYPP fypp) if (FYPP) get_target_property(_fortuno_incdir Fortuno::fortuno_include_dir INTERFACE_INCLUDE_DIRECTORIES) set(FYPP_INCOPTS "-I${_fortuno_incdir}") diff --git a/test/export/serial/meson.build b/test/export/serial/meson.build index f98901c..10dec5f 100644 --- a/test/export/serial/meson.build +++ b/test/export/serial/meson.build @@ -11,7 +11,11 @@ project( testapp_deps = [] testapp_fpp_deps = [] -fortuno_serial_dep = dependency('fortuno_serial', fallback: ['fortuno', 'fortuno_serial_dep']) +fortuno_serial_dep = dependency( + 'fortuno_serial', + version: '= 0.1.0', + fallback: ['fortuno', 'fortuno_serial_dep'] +) testapp_deps += fortuno_serial_dep testapp_fpp_deps += fortuno_serial_dep