diff options
author | Brad King <brad.king@kitware.com> | 2011-09-14 17:59:23 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2011-09-14 18:06:02 (GMT) |
commit | 67fcc838d9e857de2697c2fbe34e40ac095973dc (patch) | |
tree | 5ac12c3aa4e4315aafd40a198a47cc4aaa477158 /Modules/CMakeDetermineCompilerABI.cmake | |
parent | a7ce26d837b1c6465c995519ee91e3e0d9190826 (diff) | |
download | CMake-67fcc838d9e857de2697c2fbe34e40ac095973dc.zip CMake-67fcc838d9e857de2697c2fbe34e40ac095973dc.tar.gz CMake-67fcc838d9e857de2697c2fbe34e40ac095973dc.tar.bz2 |
Simplify IntelVSImplicitPath detection project
Use the ENV{LIB} variable directly instead of parsing the output of the
whole environment from "set". Store the output in a .cmake script and
include it from CMakeDetermineCompilerABI instead of using file(READ).
Diffstat (limited to 'Modules/CMakeDetermineCompilerABI.cmake')
-rw-r--r-- | Modules/CMakeDetermineCompilerABI.cmake | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/Modules/CMakeDetermineCompilerABI.cmake b/Modules/CMakeDetermineCompilerABI.cmake index 6792b7a..a808a28 100644 --- a/Modules/CMakeDetermineCompilerABI.cmake +++ b/Modules/CMakeDetermineCompilerABI.cmake @@ -98,13 +98,10 @@ FUNCTION(CMAKE_DETERMINE_COMPILER_ABI lang src) CMAKE_FLAGS "-DCMAKE_Fortran_FLAGS:STRING=${CMAKE_Fortran_FLAGS}" OUTPUT_VARIABLE _output) - FILE(READ - ${CMAKE_BINARY_DIR}/CMakeFiles/IntelVSImplicitPath/implict_link.txt - dir) - LIST(APPEND implicit_dirs "${dir}") FILE(WRITE "${CMAKE_BINARY_DIR}/CMakeFiles/IntelVSImplicitPath/output.txt" "${_output}") + INCLUDE(${CMAKE_BINARY_DIR}/CMakeFiles/IntelVSImplicitPath/output.cmake OPTIONAL) SET(_desc "Determine Intel Fortran Compiler Implicit Link Path -- done") MESSAGE(STATUS "${_desc}") ENDIF() |