diff options
author | Christian Pfeiffer <cpfeiffer@live.de> | 2017-05-05 15:26:29 (GMT) |
---|---|---|
committer | Christian Pfeiffer <cpfeiffer@live.de> | 2017-05-05 15:26:29 (GMT) |
commit | d59e3509850329096a7d6dfbc037d721b70034c9 (patch) | |
tree | d114b357f4193291ad0705d5b2e1162b1aa011fc /Modules/CMakeParseImplicitLinkInfo.cmake | |
parent | a83250880ad511d92d96bfd860873b9c79c0f462 (diff) | |
download | CMake-d59e3509850329096a7d6dfbc037d721b70034c9.zip CMake-d59e3509850329096a7d6dfbc037d721b70034c9.tar.gz CMake-d59e3509850329096a7d6dfbc037d721b70034c9.tar.bz2 |
Do not assume GCC libs are linked by all compilers
Not all compilers link libgcc and libgcc_s causing trouble when linking
C++ code with instance PGI Fortran and C compilers.
Diffstat (limited to 'Modules/CMakeParseImplicitLinkInfo.cmake')
-rw-r--r-- | Modules/CMakeParseImplicitLinkInfo.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/CMakeParseImplicitLinkInfo.cmake b/Modules/CMakeParseImplicitLinkInfo.cmake index ad3c00f..1d0030c 100644 --- a/Modules/CMakeParseImplicitLinkInfo.cmake +++ b/Modules/CMakeParseImplicitLinkInfo.cmake @@ -133,7 +133,7 @@ function(CMAKE_PARSE_IMPLICIT_LINK_INFO text lib_var dir_var fwk_var log_var obj # We remove items that are not language-specific. set(implicit_libs "") foreach(lib IN LISTS implicit_libs_tmp) - if("x${lib}" MATCHES "^x(crt.*\\.o|gcc.*|System.*|.*libclang_rt.*)$") + if("x${lib}" MATCHES "^x(crt.*\\.o|System.*|.*libclang_rt.*)$") string(APPEND log " remove lib [${lib}]\n") elseif(IS_ABSOLUTE "${lib}") get_filename_component(abs "${lib}" ABSOLUTE) |