summaryrefslogtreecommitdiff
path: root/CMAKE
diff options
context:
space:
mode:
authorHans Johnson <hans-johnson@uiowa.edu>2016-07-10 19:37:43 (GMT)
committerHans Johnson <hans-johnson@uiowa.edu>2016-07-10 19:37:46 (GMT)
commitb1e0d47edc106af8f1f0b9290785ced77c0ed1d0 (patch)
tree829ca2c166916828b6d64a98cb1da749d41a2702 /CMAKE
parent28f0a3f1e1dffc1b3c5bc07ccff5b42dd81bb808 (diff)
downloadlapack-b1e0d47edc106af8f1f0b9290785ced77c0ed1d0.zip
lapack-b1e0d47edc106af8f1f0b9290785ced77c0ed1d0.tar.gz
lapack-b1e0d47edc106af8f1f0b9290785ced77c0ed1d0.tar.bz2
STYLE: Convert CMake-language commands to lower case
Ancient CMake versions required upper-case commands. Later command names became case-insensitive. Now the preferred style is lower-case. Run the following shell code: NOTE: MUST USE GNU compliant version of sed cmake --help-command-list \ | grep -v "cmake version" \ | while read c; do echo 's/\b'"$(echo $c | tr '[:lower:]' '[:upper:]')"'\(\s*\)(/'"$c"'\1(/g' done >convert.sed \ && git ls-files -z -- bootstrap '*.cmake' '*.cmake.in' '*CMakeLists.txt' \ | xargs -0 gsed -i -f convert.sed \ && rm convert.sed
Diffstat (limited to 'CMAKE')
-rw-r--r--CMAKE/FortranMangling.cmake66
1 files changed, 33 insertions, 33 deletions
diff --git a/CMAKE/FortranMangling.cmake b/CMAKE/FortranMangling.cmake
index 2d9c626..e0a9fd5 100644
--- a/CMAKE/FortranMangling.cmake
+++ b/CMAKE/FortranMangling.cmake
@@ -10,37 +10,37 @@
# UpCase
#
macro(FORTRAN_MANGLING CDEFS)
-MESSAGE(STATUS "=========")
- GET_FILENAME_COMPONENT(F77_NAME ${CMAKE_Fortran_COMPILER} NAME)
- GET_FILENAME_COMPONENT(F77_PATH ${CMAKE_Fortran_COMPILER} PATH)
- SET(F77 ${F77_NAME} CACHE INTERNAL "Name of the fortran compiler.")
+message(STATUS "=========")
+ get_filename_component(F77_NAME ${CMAKE_Fortran_COMPILER} NAME)
+ get_filename_component(F77_PATH ${CMAKE_Fortran_COMPILER} PATH)
+ set(F77 ${F77_NAME} CACHE INTERNAL "Name of the fortran compiler.")
- IF(${F77} STREQUAL "ifort.exe")
+ if(${F77} STREQUAL "ifort.exe")
#settings for Intel Fortran
- SET(F77_OPTION_COMPILE "/c" CACHE INTERNAL
+ set(F77_OPTION_COMPILE "/c" CACHE INTERNAL
"Fortran compiler option for compiling without linking.")
- SET(F77_OUTPUT_OBJ "/Fo" CACHE INTERNAL
+ set(F77_OUTPUT_OBJ "/Fo" CACHE INTERNAL
"Fortran compiler option for setting object file name.")
- SET(F77_OUTPUT_EXE "/Fe" CACHE INTERNAL
+ set(F77_OUTPUT_EXE "/Fe" CACHE INTERNAL
"Fortran compiler option for setting executable file name.")
- ELSE(${F77} STREQUAL "ifort.exe")
+ else(${F77} STREQUAL "ifort.exe")
# in other case, let user specify their fortran configrations.
- SET(F77_OPTION_COMPILE "-c" CACHE STRING
+ set(F77_OPTION_COMPILE "-c" CACHE STRING
"Fortran compiler option for compiling without linking.")
- SET(F77_OUTPUT_OBJ "-o" CACHE STRING
+ set(F77_OUTPUT_OBJ "-o" CACHE STRING
"Fortran compiler option for setting object file name.")
- SET(F77_OUTPUT_EXE "-o" CACHE STRING
+ set(F77_OUTPUT_EXE "-o" CACHE STRING
"Fortran compiler option for setting executable file name.")
- SET(F77_LIB_PATH "" CACHE PATH
+ set(F77_LIB_PATH "" CACHE PATH
"Library path for the fortran compiler")
- SET(F77_INCLUDE_PATH "" CACHE PATH
+ set(F77_INCLUDE_PATH "" CACHE PATH
"Include path for the fortran compiler")
- ENDIF(${F77} STREQUAL "ifort.exe")
+ endif(${F77} STREQUAL "ifort.exe")
-MESSAGE(STATUS "Testing FORTRAN_MANGLING")
+message(STATUS "Testing FORTRAN_MANGLING")
-MESSAGE(STATUS "Compiling Finface.f...")
+message(STATUS "Compiling Finface.f...")
execute_process ( COMMAND ${CMAKE_Fortran_COMPILER} ${F77_OPTION_COMPILE} ${PROJECT_SOURCE_DIR}/lapacke/mangling/Fintface.f
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeTmp
@@ -49,13 +49,13 @@ MESSAGE(STATUS "Compiling Finface.f...")
ERROR_VARIABLE ERROR)
if(RESULT EQUAL 0)
- MESSAGE(STATUS "Compiling Finface.f successful")
+ message(STATUS "Compiling Finface.f successful")
else()
- MESSAGE(FATAL_ERROR " Compiling Finface.f FAILED")
- MESSAGE(FATAL_ERROR " Error:\n ${ERROR}")
+ message(FATAL_ERROR " Compiling Finface.f FAILED")
+ message(FATAL_ERROR " Error:\n ${ERROR}")
endif()
-MESSAGE(STATUS "Compiling Cintface.c...")
+message(STATUS "Compiling Cintface.c...")
execute_process ( COMMAND ${CMAKE_C_COMPILER} ${F77_OPTION_COMPILE} ${PROJECT_SOURCE_DIR}/lapacke/mangling/Cintface.c
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeTmp
@@ -64,13 +64,13 @@ MESSAGE(STATUS "Compiling Cintface.c...")
ERROR_VARIABLE ERROR)
if(RESULT EQUAL 0)
- MESSAGE(STATUS "Compiling Cintface.c successful")
+ message(STATUS "Compiling Cintface.c successful")
else()
- MESSAGE(FATAL_ERROR " Compiling Cintface.c FAILED")
- MESSAGE(FATAL_ERROR " Error:\n ${ERROR}")
+ message(FATAL_ERROR " Compiling Cintface.c FAILED")
+ message(FATAL_ERROR " Error:\n ${ERROR}")
endif()
-MESSAGE(STATUS "Linking Finface.f and Cintface.c...")
+message(STATUS "Linking Finface.f and Cintface.c...")
execute_process ( COMMAND ${CMAKE_Fortran_COMPILER} ${F77_OUTPUT_OBJ} xintface.exe Fintface.o Cintface.o
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeTmp
@@ -79,13 +79,13 @@ MESSAGE(STATUS "Linking Finface.f and Cintface.c...")
ERROR_VARIABLE ERROR)
if(RESULT EQUAL 0)
- MESSAGE(STATUS "Linking Finface.f and Cintface.c successful")
+ message(STATUS "Linking Finface.f and Cintface.c successful")
else()
- MESSAGE(FATAL_ERROR " Linking Finface.f and Cintface.c FAILED")
- MESSAGE(FATAL_ERROR " Error:\n ${ERROR}")
+ message(FATAL_ERROR " Linking Finface.f and Cintface.c FAILED")
+ message(FATAL_ERROR " Error:\n ${ERROR}")
endif()
-MESSAGE(STATUS "Running ./xintface...")
+message(STATUS "Running ./xintface...")
execute_process ( COMMAND ./xintface.exe
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeTmp
@@ -95,11 +95,11 @@ MESSAGE(STATUS "Running ./xintface...")
if (xintface_RES EQUAL 0)
- STRING(REPLACE "\n" "" xintface_OUT "${xintface_OUT}")
- MESSAGE(STATUS "Fortran MANGLING convention: ${xintface_OUT}")
- SET(CDEFS ${xintface_OUT})
+ string(REPLACE "\n" "" xintface_OUT "${xintface_OUT}")
+ message(STATUS "Fortran MANGLING convention: ${xintface_OUT}")
+ set(CDEFS ${xintface_OUT})
else()
- MESSAGE(FATAL_ERROR "FORTRAN_MANGLING:ERROR ${xintface_ERR}")
+ message(FATAL_ERROR "FORTRAN_MANGLING:ERROR ${xintface_ERR}")
endif()
endmacro(FORTRAN_MANGLING)