From 5a11641b4585449da5e77a3a8d2b36ff09bdc923 Mon Sep 17 00:00:00 2001 From: Matthias Maier Date: Fri, 2 Dec 2022 22:26:54 -0600 Subject: [PATCH] CMake: remove switch_library_preference() --- cmake/configure/configure_00_threads.cmake | 2 -- .../macro_switch_library_preference.cmake | 31 ------------------- 2 files changed, 33 deletions(-) delete mode 100644 cmake/macros/macro_switch_library_preference.cmake 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() -- 2.39.5