# DEAL_II_UNITY_BUILD
# DEAL_II_EARLY_DEPRECATIONS
# BUILD_SHARED_LIBS
-# DEAL_II_PREFER_STATIC_LIBS
# CMAKE_INSTALL_RPATH_USE_LINK_PATH
# DEAL_II_CXX_FLAGS *)
# DEAL_II_CXX_FLAGS_DEBUG
"Build a shared library"
)
-option(DEAL_II_PREFER_STATIC_LIBS
- "Prefer static libraries over dynamic libraries when searching for features and corresponding link interface"
- OFF
- )
-mark_as_advanced(DEAL_II_PREFER_STATIC_LIBS)
-
set(CMAKE_INSTALL_RPATH_USE_LINK_PATH "ON" CACHE BOOL
"Set the rpath of the library to the external link paths on installation"
)
LINKER_FLAGS_RELEASE LINKER_FLAGS_DEBUG
)
-
-########################################################################
-# #
-# Setup static linkage and crosscompilation: #
-# #
-########################################################################
-
-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()
+#
+# Disable platform introspection when cross compiling
+#
if(CMAKE_CROSSCOMPILING)
- #
- # Disable platform introspection when cross compiling
- #
set(DEAL_II_ALLOW_PLATFORM_INTROSPECTION OFF CACHE BOOL "" FORCE)
endif()
<code>BUILD_SHARED_LIBS</code>: If set (default),
<acronym>deal.II</acronym> will be linked as a shared library
- <li>
- <code>DEAL_II_PREFER_STATIC_LIBS</code> (defaults to off): If set
- to true, static archives will be preferred over dynamic libraries when
- searching for features and corresponding link interface.
-
<li>
<code>CMAKE_INSTALL_RPATH_USE_LINK_PATH</code>: If set
(default), the <acronym>deal.II</acronym> library will be
# set(DEAL_II_UNITY_BUILD OFF CACHE BOOL "")
# set(DEAL_II_EARLY_DEPRECATIONS OFF CACHE BOOL "")
# set(BUILD_SHARED_LIBS "ON" CACHE BOOL "")
-# set(DEAL_II_PREFER_STATIC_LIBS "OFF" CACHE BOOL "")
# set(CMAKE_INSTALL_RPATH_USE_LINK_PATH "ON" CACHE BOOL "")
#