aboutsummaryrefslogtreecommitdiff
path: root/CMAKE
diff options
context:
space:
mode:
authorHans Johnson <hans-johnson@uiowa.edu>2016-07-09 10:34:19 -0500
committerHans Johnson <hans-johnson@uiowa.edu>2016-07-09 10:34:19 -0500
commitf8fb0842d55c34ad2c26da58e9f55a3f10e52d0b (patch)
tree1be5f94764592cf36dedaf1fd22d97557c7d1fec /CMAKE
parentd177ffb1c16aaa08fb146a665add95d621fb2325 (diff)
STYLE: Remove trailing whitespace in CMake files
This is mostly a long term maintenance improvement. Many coding styles require elimination of trailing whitespace, and many editors and source code management configurations automatically gobble up whitespace. When these tools gobble up whitespace, it complicates reviewing the meaningful code changes. By removing whitespace on one patch, it makes future code reviews much easier.
Diffstat (limited to 'CMAKE')
-rw-r--r--CMAKE/CheckFortranTypeSizes.cmake6
-rw-r--r--CMAKE/CheckLAPACKCompilerFlags.cmake12
-rw-r--r--CMAKE/FortranMangling.cmake10
3 files changed, 14 insertions, 14 deletions
diff --git a/CMAKE/CheckFortranTypeSizes.cmake b/CMAKE/CheckFortranTypeSizes.cmake
index 9cc12ce1..585ca26e 100644
--- a/CMAKE/CheckFortranTypeSizes.cmake
+++ b/CMAKE/CheckFortranTypeSizes.cmake
@@ -3,12 +3,12 @@
#
# After execution, the following variables are set. If they are un set then
# size detection was not possible
-#
+#
# SIZEOF_INTEGER - Number of bytes used to store the default INTEGER type
# SIZEOF_REAL - Number of bytes used to store the default REAL type
# SIZEOF_LOGICAL - Number of bytes used to store the default LOGICAL type
# SIZEOF_CHARACTER - Number of bytes used to store the default CHARACTER type
-#
+#
#=============================================================================
# Author: Chuck Atkins
# Copyright 2011
@@ -19,7 +19,7 @@ macro( _CHECK_FORTRAN_TYPE_SIZE _TYPE_NAME _TEST_SIZES )
foreach( __TEST_SIZE ${_TEST_SIZES} )
set( __TEST_FILE ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeTmp/testFortran${_TYPE_NAME}Size${__TEST_SIZE}.f90 )
- file( WRITE ${__TEST_FILE}
+ file( WRITE ${__TEST_FILE}
"
PROGRAM check_size
${_TYPE_NAME}*${__TEST_SIZE}, TARGET :: a
diff --git a/CMAKE/CheckLAPACKCompilerFlags.cmake b/CMAKE/CheckLAPACKCompilerFlags.cmake
index 77026a66..acc51629 100644
--- a/CMAKE/CheckLAPACKCompilerFlags.cmake
+++ b/CMAKE/CheckLAPACKCompilerFlags.cmake
@@ -1,10 +1,10 @@
# This module checks against various known compilers and thier respective
# flags to determine any specific flags needing to be set.
-#
+#
# 1. If FPE traps are enabled either abort or disable them
# 2. Specify fixed form if needed
# 3. Ensure that Release builds use O2 instead of O3
-#
+#
#=============================================================================
# Author: Chuck Atkins
# Copyright 2011
@@ -16,7 +16,7 @@ set( FPE_EXIT FALSE )
# GNU Fortran
if( CMAKE_Fortran_COMPILER_ID STREQUAL "GNU" )
- if( "${CMAKE_Fortran_FLAGS}" MATCHES "-ffpe-trap=[izoupd]")
+ if( "${CMAKE_Fortran_FLAGS}" MATCHES "-ffpe-trap=[izoupd]")
set( FPE_EXIT TRUE )
endif()
@@ -55,12 +55,12 @@ elseif( CMAKE_Fortran_COMPILER_ID STREQUAL "HP" )
if( "${CMAKE_Fortran_FLAGS}" MATCHES "\\+fp_exception" )
set( FPE_EXIT TRUE )
endif()
-
+
if( NOT ("${CMAKE_Fortran_FLAGS}" MATCHES "\\+fltconst_strict") )
message( STATUS "Enabling strict float conversion with +fltconst_strict" )
set( CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} +fltconst_strict"
CACHE STRING "Flags for Fortran compiler." FORCE )
- endif()
+ endif()
# Most versions of cmake don't have good default options for the HP compiler
set( CMAKE_Fortran_FLAGS_DEBUG "${CMAKE_Fortran_FLAGS_DEBUG} -g"
@@ -76,7 +76,7 @@ endif()
if( "${CMAKE_Fortran_FLAGS_RELEASE}" MATCHES "O[3-9]" )
message( STATUS "Reducing RELEASE optimization level to O2" )
- string( REGEX REPLACE "O[3-9]" "O2" CMAKE_Fortran_FLAGS_RELEASE
+ string( REGEX REPLACE "O[3-9]" "O2" CMAKE_Fortran_FLAGS_RELEASE
"${CMAKE_Fortran_FLAGS_RELEASE}" )
set( CMAKE_Fortran_FLAGS_RELEASE "${CMAKE_Fortran_FLAGS_RELEASE}"
CACHE STRING "Flags used by the compiler during release builds" FORCE )
diff --git a/CMAKE/FortranMangling.cmake b/CMAKE/FortranMangling.cmake
index 98b8443e..2d9c6266 100644
--- a/CMAKE/FortranMangling.cmake
+++ b/CMAKE/FortranMangling.cmake
@@ -8,7 +8,7 @@
# NoChange
# f77IsF2C
# UpCase
-#
+#
macro(FORTRAN_MANGLING CDEFS)
MESSAGE(STATUS "=========")
GET_FILENAME_COMPONENT(F77_NAME ${CMAKE_Fortran_COMPILER} NAME)
@@ -39,7 +39,7 @@ MESSAGE(STATUS "=========")
MESSAGE(STATUS "Testing FORTRAN_MANGLING")
-
+
MESSAGE(STATUS "Compiling Finface.f...")
execute_process ( COMMAND ${CMAKE_Fortran_COMPILER} ${F77_OPTION_COMPILE} ${PROJECT_SOURCE_DIR}/lapacke/mangling/Fintface.f
@@ -92,7 +92,7 @@ MESSAGE(STATUS "Running ./xintface...")
RESULT_VARIABLE xintface_RES
OUTPUT_VARIABLE xintface_OUT
ERROR_VARIABLE xintface_ERR)
-
+
if (xintface_RES EQUAL 0)
STRING(REPLACE "\n" "" xintface_OUT "${xintface_OUT}")
@@ -100,6 +100,6 @@ MESSAGE(STATUS "Running ./xintface...")
SET(CDEFS ${xintface_OUT})
else()
MESSAGE(FATAL_ERROR "FORTRAN_MANGLING:ERROR ${xintface_ERR}")
- endif()
-
+ endif()
+
endmacro(FORTRAN_MANGLING)