summaryrefslogtreecommitdiff
path: root/CBLAS
diff options
context:
space:
mode:
authorHans Johnson <hans-johnson@uiowa.edu>2016-07-10 14:38:44 -0500
committerHans Johnson <hans-johnson@uiowa.edu>2016-07-10 14:38:48 -0500
commit5333ddd9dc0fe7a54563fab4536b4a882605c02a (patch)
tree593aa7d8c899b127d6bb38bfb57b163ca63a63f2 /CBLAS
parentb1e0d47edc106af8f1f0b9290785ced77c0ed1d0 (diff)
downloadlapack-5333ddd9dc0fe7a54563fab4536b4a882605c02a.tar.gz
lapack-5333ddd9dc0fe7a54563fab4536b4a882605c02a.tar.bz2
lapack-5333ddd9dc0fe7a54563fab4536b4a882605c02a.zip
Remove CMake-language block-end command arguments
Ancient versions of CMake required else(), endif(), and similar block termination commands to have arguments matching the command starting the block. This is no longer the preferred style. NOTE: MUST USE GNU compliant version of sed Run the following shell code: for c in else endif endforeach endfunction endmacro endwhile; do echo 's/\b'"$c"'\(\s*\)(.\+)/'"$c"'\1()/' 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 'CBLAS')
-rw-r--r--CBLAS/CMakeLists.txt4
-rw-r--r--CBLAS/src/CMakeLists.txt8
-rw-r--r--CBLAS/testing/CMakeLists.txt2
3 files changed, 7 insertions, 7 deletions
diff --git a/CBLAS/CMakeLists.txt b/CBLAS/CMakeLists.txt
index 9f6f043a..a4a9b8d5 100644
--- a/CBLAS/CMakeLists.txt
+++ b/CBLAS/CMakeLists.txt
@@ -34,11 +34,11 @@ install( FILES ${CBLAS_INCLUDE} ${LAPACK_BINARY_DIR}/include/cblas_mangling.h DE
if(BUILD_TESTING)
add_subdirectory(testing)
add_subdirectory(examples)
-endif(BUILD_TESTING)
+endif()
if(NOT BLAS_FOUND)
set(ALL_TARGETS ${ALL_TARGETS} blas)
-endif(NOT BLAS_FOUND)
+endif()
# Export cblas targets from the
# install tree, if any.
diff --git a/CBLAS/src/CMakeLists.txt b/CBLAS/src/CMakeLists.txt
index 41b74a23..90496b92 100644
--- a/CBLAS/src/CMakeLists.txt
+++ b/CBLAS/src/CMakeLists.txt
@@ -146,22 +146,22 @@ set(ALLOBJ ${SCLEV1} ${SLEV1} ${SLEV2} ${SLEV3} ${ERRHAND}
# Single real precision
if(CBLAS_SINGLE)
set(ALLOBJ ${SCLEV1} ${SLEV1} ${SLEV2} ${SLEV3} ${ERRHAND})
-endif(CBLAS_SINGLE)
+endif()
# Double real precision
if(CBLAS_DOUBLE)
set(ALLOBJ ${DLEV1} ${DLEV2} ${DLEV3} ${ERRHAND})
-endif(CBLAS_DOUBLE)
+endif()
# Single complex precision
if (CBLAS_COMPLEX)
set(ALLOBJ ${CLEV1} ${SCLEV1} ${CLEV2} ${CLEV3} ${ERRHAND})
-endif(CBLAS_COMPLEX)
+endif()
# Double complex precision
if (CBLAS_COMPLEX16)
set(ALLOBJ ${ZLEV1} ${ZLEV2} ${ZLEV3} ${ERRHAND})
-endif(CBLAS_COMPLEX16)
+endif()
add_library(cblas ${ALLOBJ})
target_link_libraries(cblas ${BLAS_LIBRARIES} )
diff --git a/CBLAS/testing/CMakeLists.txt b/CBLAS/testing/CMakeLists.txt
index 2456d229..56480299 100644
--- a/CBLAS/testing/CMakeLists.txt
+++ b/CBLAS/testing/CMakeLists.txt
@@ -22,7 +22,7 @@ macro(add_cblas_test output input target)
-DINTDIR=${CMAKE_CFG_INTDIR}
-P "${LAPACK_SOURCE_DIR}/TESTING/runtest.cmake")
endif()
-endmacro(add_cblas_test)
+endmacro()
# Object files for single real precision