From: Matthias Maier Date: Sat, 3 Dec 2022 04:26:54 +0000 (-0600) Subject: CMake: remove switch_library_preference() X-Git-Tag: v9.5.0-rc1~758^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5a11641b4585449da5e77a3a8d2b36ff09bdc923;p=dealii.git CMake: remove switch_library_preference() --- diff --git a/cmake/configure/configure_00_threads.cmake b/cmake/configure/configure_00_threads.cmake index a6c09a058e..6364628076 100644 --- a/cmake/configure/configure_00_threads.cmake +++ b/cmake/configure/configure_00_threads.cmake @@ -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 index 4070caca69..0000000000 --- a/cmake/macros/macro_switch_library_preference.cmake +++ /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()