Skip to content

Commit

Permalink
remove trailing whitespace in all *.cmake files
Browse files Browse the repository at this point in the history
This helps keeping future commits clean in this respect.
  • Loading branch information
nschloe committed Oct 6, 2014
1 parent a12526f commit 799c6ee
Show file tree
Hide file tree
Showing 73 changed files with 558 additions and 558 deletions.
2 changes: 1 addition & 1 deletion config_tests/BLASMangling.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
# Sets the following outputs on success:
#
# BLAS_FN_CASE
# "UPPER" if names are translated to upper-case,
# "UPPER" if names are translated to upper-case,
# "LOWER" otherwise.
#
# BLAS_FN_UNDERSCORE
Expand Down
24 changes: 12 additions & 12 deletions config_tests/FiniteValue.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
# Checks for the isnan() and isinf() functions needed by Trilinos.
# These functions are not supported reliably across all platforms.
# Even if they are supported, they sometimes don't have a prototype
# defined in a header, making it useless in c++.
# defined in a header, making it useless in c++.

# We check for a predefined version and use that. If not, then we
# fall back on checks that may or may not work depending on the
Expand All @@ -50,7 +50,7 @@ INCLUDE(CheckCXXSourceRuns)
INCLUDE(CheckCXXSourceCompiles)

#############################################################
# isnan
# isnan
#############################################################

# Some machines have isnan() in the global namespace and some put it
Expand All @@ -64,11 +64,11 @@ int main()
double x = 1.0;
isnan(x);
return 0;
}
}
"
)

CHECK_CXX_SOURCE_COMPILES("${SOURCE_GLOBAL_ISNAN}"
CHECK_CXX_SOURCE_COMPILES("${SOURCE_GLOBAL_ISNAN}"
FINITE_VALUE_HAVE_GLOBAL_ISNAN)

SET(SOURCE_STD_ISNAN
Expand All @@ -79,15 +79,15 @@ int main()
double x = 1.0;
std::isnan(x);
return 0;
}
}
"
)

CHECK_CXX_SOURCE_COMPILES("${SOURCE_STD_ISNAN}"
CHECK_CXX_SOURCE_COMPILES("${SOURCE_STD_ISNAN}"
FINITE_VALUE_HAVE_STD_ISNAN)

IF (CMAKE_VERBOSE_MAKEFILE)
IF (NOT FINITE_VALUE_HAVE_GLOBAL_ISNAN AND
IF (NOT FINITE_VALUE_HAVE_GLOBAL_ISNAN AND
NOT FINITE_VALUE_HAVE_STD_ISNAN )
message("****************************************************")
message("** Warning: Your compiler doesn't support isnan() or")
Expand All @@ -111,11 +111,11 @@ int main()
double x = 1.0;
isinf(x);
return 0;
}
}
"
)

CHECK_CXX_SOURCE_COMPILES("${SOURCE_GLOBAL_ISINF}"
CHECK_CXX_SOURCE_COMPILES("${SOURCE_GLOBAL_ISINF}"
FINITE_VALUE_HAVE_GLOBAL_ISINF)

SET(SOURCE_STD_ISINF
Expand All @@ -126,15 +126,15 @@ int main()
double x = 1.0;
std::isinf(x);
return 0;
}
}
"
)

CHECK_CXX_SOURCE_COMPILES("${SOURCE_STD_ISINF}"
CHECK_CXX_SOURCE_COMPILES("${SOURCE_STD_ISINF}"
FINITE_VALUE_HAVE_STD_ISINF)

IF (CMAKE_VERBOSE_MAKEFILE)
IF (NOT FINITE_VALUE_HAVE_GLOBAL_ISINF AND
IF (NOT FINITE_VALUE_HAVE_GLOBAL_ISINF AND
NOT FINITE_VALUE_HAVE_STD_ISINF )
message("****************************************************")
message("** Warning: Your compiler doesn't support isinf() or")
Expand Down
4 changes: 2 additions & 2 deletions config_tests/FortranMangling.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ INCLUDE(GlobalSet)
# Sets the following outputs on success:
#
# FC_FN_CASE
# "UPPER" if names are translated to upper-case,
# "UPPER" if names are translated to upper-case,
# "LOWER" otherwise.
#
# FC_FN_UNDERSCORE
Expand Down Expand Up @@ -209,7 +209,7 @@ ENDFUNCTION()
## FC_FN_STRINGARG is set to PAIRED. If the lengths are appended
## to the call, e.g. foo({'b','a','r'}, 1.0, 3), FC_FN_STRINGARG
## is set to TRAILING.
##
##
## This macro does not currently check for older Cray and VMS
## conventions that require conversion functions. It also assumes
## that the length is passed as the "natural" size type, C's size_t.
Expand Down
12 changes: 6 additions & 6 deletions config_tests/MathLibraryNeeded.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ INCLUDE(CheckCSourceCompiles)
IF (NOT MATH_LIBRARY_IS_SUPPLIED AND NOT MATH_LIBRARY_IS_SET)

SET(CMAKE_REQUIRED_LIBRARIES ${${PROJECT_NAME}_EXTRA_LINK_FLAGS})

CHECK_C_SOURCE_COMPILES(
"
#include <math.h>
Expand All @@ -53,19 +53,19 @@ int main()
double val2 = log10(2.0);
double val3 = log(2.0);
return 0;
}
}
"
MATH_LIBRARY_IS_SUPPLIED
)

SET(CMAKE_REQUIRED_LIBRARIES)

IF (NOT MATH_LIBRARY_IS_SUPPLIED)

IF (${PROJECT_NAME}_VERBOSE_CONFIGURE)
MESSAGE(STATUS "Searching for -lm ...")
ENDIF()

SET(MATH_LIBRARY NOTFOUND)
FIND_LIBRARY(MATH_LIBRARY m)

Expand All @@ -87,7 +87,7 @@ int main()
"Error, the math library for C programs could not be found!"
)
ENDIF()

ENDIF()

ENDIF()
Loading

0 comments on commit 799c6ee

Please sign in to comment.