From: Matthias Maier Date: Thu, 23 Mar 2023 19:11:07 +0000 (-0500) Subject: CMake: avoid a warning in the check_compiler_setup macro X-Git-Tag: v9.5.0-rc1~420^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2ea7aa8c23512ec9f686bc07622eac9307869f95;p=dealii.git CMake: avoid a warning in the check_compiler_setup macro We should call cmake_minimum_required() prior to project(). --- diff --git a/cmake/macros/check_compiler_setup/CMakeLists.txt b/cmake/macros/check_compiler_setup/CMakeLists.txt index d423055b01..3b9e5a2ea4 100644 --- a/cmake/macros/check_compiler_setup/CMakeLists.txt +++ b/cmake/macros/check_compiler_setup/CMakeLists.txt @@ -1,5 +1,5 @@ -project(CheckCompilerSetup) cmake_minimum_required(VERSION 3.13.4) +project(CheckCompilerSetup) add_executable(CheckCompilerSetupExec dummy.cpp) # Make sure some CUDA warning flags don't get deduplicated