]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Be less verbose in cmake. 17856/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Fri, 8 Nov 2024 22:25:29 +0000 (15:25 -0700)
committerWolfgang Bangerth <bangerth@colostate.edu>
Fri, 8 Nov 2024 22:25:29 +0000 (15:25 -0700)
cmake/checks/check_02_compiler_features.cmake

index cab88ab5bb46dca138095fd91e459eb51eea3e48..2a9cf3d709e6a1b246f38180746c060b3f9c5144 100644 (file)
@@ -419,13 +419,7 @@ if(DEAL_II_USE_LTO)
   check_ipo_supported(RESULT _res OUTPUT _out LANGUAGES CXX)
   if (_res)
     message(STATUS "Compiler supports interprocedural/link-time optimizations")
-    set(DEAL_II_USE_LTO "YES")
   else()
     message(FATAL_ERROR "You asked for interprocedural/link-time optimizations, but the compiler does not support these optimizations: ${_out}")
-    set(DEAL_II_USE_LTO "NO")
   endif()
-else()
-  # User did not set DEAL_II_USE_LTO on the command line. Set the
-  # variable to a specific (negative) value.
-  set(DEAL_II_USE_LTO "NO")
 endif()

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.