Do not build shared libs if not supported

(cherry picked from commit 09d7122468)
This commit is contained in:
Daniel N. Miller (APD)
2021-06-23 21:09:53 -07:00
committed by Rasmus Munk Larsen
parent 4240b480e0
commit 1e9f623f3e
3 changed files with 37 additions and 23 deletions

View File

@@ -88,6 +88,9 @@ else()
ei_add_cxx_compiler_flag("-std=c++03")
endif()
# Determine if we should build shared libraries on this platform.
get_cmake_property(EIGEN_BUILD_SHARED_LIBS TARGET_SUPPORTS_SHARED_LIBS)
#############################################################################
# find how to link to the standard libraries #
#############################################################################