diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2007-12-17 17:04:15 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2007-12-17 17:04:15 (GMT) |
commit | 9eb207aa89256f30947feb031717050aa5a16aae (patch) | |
tree | 20b8cd31619e69b109812d9930d09d0c6973a9f5 /Modules/CMakeFortranInformation.cmake | |
parent | 8506938407722306adeccf12b407a8e8d92a90a6 (diff) | |
download | CMake-9eb207aa89256f30947feb031717050aa5a16aae.zip CMake-9eb207aa89256f30947feb031717050aa5a16aae.tar.gz CMake-9eb207aa89256f30947feb031717050aa5a16aae.tar.bz2 |
BUG: fix for bug 6167 get rid of extra space in flags
Diffstat (limited to 'Modules/CMakeFortranInformation.cmake')
-rw-r--r-- | Modules/CMakeFortranInformation.cmake | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Modules/CMakeFortranInformation.cmake b/Modules/CMakeFortranInformation.cmake index 7484838..09880c1 100644 --- a/Modules/CMakeFortranInformation.cmake +++ b/Modules/CMakeFortranInformation.cmake @@ -86,8 +86,11 @@ ENDIF(NOT CMAKE_INCLUDE_FLAG_SEP_Fortran) SET(CMAKE_VERBOSE_MAKEFILE FALSE CACHE BOOL "If this value is on, makefiles will be generated without the .SILENT directive, and all commands will be echoed to the console during the make. This is useful for debugging only. With Visual Studio IDE projects all commands are done without /nologo.") -SET (CMAKE_Fortran_FLAGS "$ENV{FFLAGS} ${CMAKE_Fortran_FLAGS_INIT}" CACHE STRING +SET (CMAKE_Fortran_FLAGS "$ENV{FFLAGS}" CACHE STRING "Flags for Fortran compiler.") +IF (CMAKE_Fortran_FLAGS_INIT) + SET (CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} ${CMAKE_Fortran_FLAGS_INIT}") +ENDIF (CMAKE_Fortran_FLAGS_INIT) |