summaryrefslogtreecommitdiffstats
path: root/Modules/CMakeDetermineCompilerABI.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2010-12-09 22:07:34 (GMT)
committerBrad King <brad.king@kitware.com>2010-12-09 22:07:34 (GMT)
commitfe3f878f15c498dcd9583bfd17b1ee11cbc5249d (patch)
tree6c0433b875a74fddf0e2ce28035f1b175b123c6b /Modules/CMakeDetermineCompilerABI.cmake
parent63d21c1f8efeb2f2337221119c479d75bbb0b7c0 (diff)
downloadCMake-fe3f878f15c498dcd9583bfd17b1ee11cbc5249d.zip
CMake-fe3f878f15c498dcd9583bfd17b1ee11cbc5249d.tar.gz
CMake-fe3f878f15c498dcd9583bfd17b1ee11cbc5249d.tar.bz2
Detect object files in implicit link information
The NAG Fortran compiler implicitly passes object files by full path to the linker. Teach CMakeParseImplicitLinkInfo to parse object files that match some tool-specific regular expression.
Diffstat (limited to 'Modules/CMakeDetermineCompilerABI.cmake')
-rw-r--r--Modules/CMakeDetermineCompilerABI.cmake3
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/CMakeDetermineCompilerABI.cmake b/Modules/CMakeDetermineCompilerABI.cmake
index d6df305..ed0b6fb 100644
--- a/Modules/CMakeDetermineCompilerABI.cmake
+++ b/Modules/CMakeDetermineCompilerABI.cmake
@@ -64,7 +64,8 @@ FUNCTION(CMAKE_DETERMINE_COMPILER_ABI lang src)
AND NOT "${CMAKE_OSX_ARCHITECTURES}" MATCHES ";"
# Skip this with Xcode for now.
AND NOT "${CMAKE_GENERATOR}" MATCHES Xcode)
- CMAKE_PARSE_IMPLICIT_LINK_INFO("${OUTPUT}" implicit_libs implicit_dirs log)
+ CMAKE_PARSE_IMPLICIT_LINK_INFO("${OUTPUT}" implicit_libs implicit_dirs log
+ "${CMAKE_${lang}_IMPLICIT_OBJECT_REGEX}")
FILE(APPEND ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeOutput.log
"Parsed ${lang} implicit link information from above output:\n${log}\n\n")
ENDIF()