aboutsummaryrefslogtreecommitdiff
path: root/LAPACKE
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 /LAPACKE
parentb1e0d47edc106af8f1f0b9290785ced77c0ed1d0 (diff)
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 'LAPACKE')
-rw-r--r--LAPACKE/CMakeLists.txt12
1 files changed, 6 insertions, 6 deletions
diff --git a/LAPACKE/CMakeLists.txt b/LAPACKE/CMakeLists.txt
index 737700f3..164ae15f 100644
--- a/LAPACKE/CMakeLists.txt
+++ b/LAPACKE/CMakeLists.txt
@@ -19,7 +19,7 @@ endif ()
if (WIN32 AND NOT UNIX)
add_definitions(-DHAVE_LAPACK_CONFIG_H -DLAPACK_COMPLEX_STRUCTURE)
message (STATUS "Windows BUILD")
-endif (WIN32 AND NOT UNIX)
+endif ()
get_directory_property( DirDefs COMPILE_DEFINITIONS )
@@ -44,22 +44,22 @@ append_subdir_files(UTILS_OBJ "utils")
if (USE_XBLAS)
add_library(lapacke ${SRC_OBJ} ${SRCX_OBJ} ${UTILS_OBJ})
target_link_libraries(lapacke ${LAPACK_LIBRARIES} ${BLAS_LIBRARIES} ${XBLAS_LIBRARY})
-else (USE_XBLAS)
+else ()
if (LAPACKE_WITH_TMG)
add_library(lapacke ${SRC_OBJ} ${MATGEN_OBJ} ${UTILS_OBJ})
target_link_libraries(lapacke tmglib ${LAPACK_LIBRARIES} ${BLAS_LIBRARIES})
- else (LAPACKE_WITH_TMG)
+ else ()
add_library(lapacke ${SRC_OBJ} ${UTILS_OBJ})
target_link_libraries(lapacke ${LAPACK_LIBRARIES} ${BLAS_LIBRARIES})
- endif(LAPACKE_WITH_TMG)
-endif(USE_XBLAS)
+ endif()
+endif()
lapack_install_library(lapacke)
install( FILES ${LAPACKE_INCLUDE} ${LAPACK_BINARY_DIR}/include/lapacke_mangling.h DESTINATION include )
if(BUILD_TESTING)
add_subdirectory(example)
-endif(BUILD_TESTING)
+endif()
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/lapacke.pc.in ${CMAKE_CURRENT_BINARY_DIR}/lapacke.pc)