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/IntelVSImplicitPath/CMakeLists.txt | |
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/IntelVSImplicitPath/CMakeLists.txt')
-rw-r--r-- | Modules/IntelVSImplicitPath/CMakeLists.txt | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/Modules/IntelVSImplicitPath/CMakeLists.txt b/Modules/IntelVSImplicitPath/CMakeLists.txt index e2a4b3f..96dc4e6 100644 --- a/Modules/IntelVSImplicitPath/CMakeLists.txt +++ b/Modules/IntelVSImplicitPath/CMakeLists.txt @@ -1,11 +1,7 @@ cmake_minimum_required (VERSION 2.8) project(IntelFortranImplicit Fortran) -add_custom_command(OUTPUT ${IntelFortranImplicit_BINARY_DIR}/env.txt - COMMAND set > ${IntelFortranImplicit_BINARY_DIR}/env.txt) -add_library(FortranLib hello.f - ${IntelFortranImplicit_BINARY_DIR}/env.txt) -add_custom_target(ExtractLibPath ALL - COMMAND ${CMAKE_COMMAND} -P ${IntelFortranImplicit_SOURCE_DIR}/extract.cmake - WORKING_DIRECTORY ${IntelFortranImplicit_BINARY_DIR} -) -add_dependencies(ExtractLibPath FortranLib) +add_custom_command( + OUTPUT output.cmake + COMMAND ${CMAKE_COMMAND} -P ${IntelFortranImplicit_SOURCE_DIR}/detect.cmake + ) +add_library(FortranLib hello.f output.cmake) |