]> https://gitweb.dealii.org/ - dealii.git/commitdiff
CMake: avoid a warning in the check_compiler_setup macro 14961/head
authorMatthias Maier <tamiko@43-1.org>
Thu, 23 Mar 2023 19:11:07 +0000 (14:11 -0500)
committerMatthias Maier <tamiko@43-1.org>
Thu, 23 Mar 2023 19:11:07 +0000 (14:11 -0500)
We should call cmake_minimum_required() prior to project().

cmake/macros/check_compiler_setup/CMakeLists.txt

index d423055b01a696f721e33495087cc76443c141a7..3b9e5a2ea48a3c869f34ad232f0746e6a64ed044 100644 (file)
@@ -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

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.