summaryrefslogtreecommitdiffstats
path: root/Modules/CMakeFortranInformation.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-11-23 15:13:38 (GMT)
committerBrad King <brad.king@kitware.com>2015-11-23 15:16:32 (GMT)
commit9682de566e264c53018cccd05465f2c5d91ccf73 (patch)
tree87e738356006380581ba74a68544a443fa901756 /Modules/CMakeFortranInformation.cmake
parent8b4873a1b025d7f47c90f3cafc93ca152b9e4652 (diff)
downloadCMake-9682de566e264c53018cccd05465f2c5d91ccf73.zip
CMake-9682de566e264c53018cccd05465f2c5d91ccf73.tar.gz
CMake-9682de566e264c53018cccd05465f2c5d91ccf73.tar.bz2
Revert "Disable shared library support when compiler links statically" (#15855)
In commit v3.4.0-rc1~18^2 (Disable shared library support when compiler links statically, 2015-09-30) we tried to detect when the compiler is not capable of linking shared libraries (possibly due to flags in use). However, the approach is not robust against flags like `-nostdlib`. Revert it for now pending another solution to the original problem.
Diffstat (limited to 'Modules/CMakeFortranInformation.cmake')
-rw-r--r--Modules/CMakeFortranInformation.cmake4
1 files changed, 0 insertions, 4 deletions
diff --git a/Modules/CMakeFortranInformation.cmake b/Modules/CMakeFortranInformation.cmake
index aa48df7..79393d3 100644
--- a/Modules/CMakeFortranInformation.cmake
+++ b/Modules/CMakeFortranInformation.cmake
@@ -51,10 +51,6 @@ if(CMAKE_Fortran_SIZEOF_DATA_PTR)
unset(CMAKE_Fortran_ABI_FILES)
endif()
-if(CMAKE_Fortran_COMPILER_LINKS_STATICALLY)
- set_property(GLOBAL PROPERTY TARGET_SUPPORTS_SHARED_LIBS FALSE)
-endif()
-
# This should be included before the _INIT variables are
# used to initialize the cache. Since the rule variables
# have if blocks on them, users can still define them here.