]> https://gitweb.dealii.org/ - dealii.git/commitdiff
CMake: remove switch_library_preference()
authorMatthias Maier <tamiko@43-1.org>
Sat, 3 Dec 2022 04:26:54 +0000 (22:26 -0600)
committerMatthias Maier <tamiko@43-1.org>
Sat, 3 Dec 2022 04:34:01 +0000 (22:34 -0600)
cmake/configure/configure_00_threads.cmake
cmake/macros/macro_switch_library_preference.cmake [deleted file]

index a6c09a058e072847ec9310e7aa47bd906a3cdf59..636462807689b8279663649b32b8bc8ffdf10c2a 100644 (file)
@@ -21,9 +21,7 @@
 # Clear the test flags because FindThreads.cmake will use a C compiler:
 clear_cmake_required()
 
-switch_library_preference()
 find_package(Threads)
-switch_library_preference()
 
 reset_cmake_required()
 
diff --git a/cmake/macros/macro_switch_library_preference.cmake b/cmake/macros/macro_switch_library_preference.cmake
deleted file mode 100644 (file)
index 4070cac..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-## ---------------------------------------------------------------------
-##
-## Copyright (C) 2013 - 2014 by the deal.II authors
-##
-## This file is part of the deal.II library.
-##
-## The deal.II library is free software; you can use it, redistribute
-## it, and/or modify it under the terms of the GNU Lesser General
-## Public License as published by the Free Software Foundation; either
-## version 2.1 of the License, or (at your option) any later version.
-## The full text of the license can be found in the file LICENSE.md at
-## the top level directory of deal.II.
-##
-## ---------------------------------------------------------------------
-
-#
-# This macro toggles the preference for static/shared libraries if
-# DEAL_II_PREFER_STATIC_LIBS=TRUE.
-#
-# Usage:
-#     switch_library_preference()
-#
-
-macro(switch_library_preference)
-  if(DEAL_II_PREFER_STATIC_LIBS)
-    #
-    # Invert the search order for libraries when DEAL_II_PREFER_STATIC_LIBS
-    # is set. This will prefer static archives instead of shared libraries:
-    list(REVERSE CMAKE_FIND_LIBRARY_SUFFIXES)
-  endif()
-endmacro()

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.