Files
mlpack/CMake/ARMA_FindACMLMP.cmake
T
Alexander Leinoff 2330419b86 Removes CMake block termination arguments
Previously CMake block termination commands were required to have arguments
matching the command starting the block. This is no longer necessary and not
the preferred style. This type of change has been implemented in other open
source projects such as: ITK, vxl, and BRAINSTools. It is the preferred style
for KDE. Consistent style practices help improve readability and
maintainability of code.

This was implemented with the shell script:
NOTE: MUST USE GNU compliant version of sed
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

This is a reimplementation of ITK commit
e52dbe7fa476f6283c9b9d1507fca052355113a4

Fixes #585
2016-03-21 17:23:25 -05:00

38 lines
1.2 KiB
CMake

# - Find AMD's ACMLMP library (no includes) which provides optimised and parallelised BLAS and LAPACK functions
# This module defines
# ACMLMP_LIBRARIES, the libraries needed to use ACMLMP.
# ACMLMP_FOUND, If false, do not try to use ACMLMP.
# also defined, but not for general use are
# ACMLMP_LIBRARY, where to find the ACMLMP library.
set(ACMLMP_NAMES ${ACMLMP_NAMES} acml_mp)
find_library(ACMLMP_LIBRARY
NAMES ${ACMLMP_NAMES}
PATHS /usr/lib64 /usr/lib /usr/*/lib64 /usr/*/lib /usr/*/gfortran64_mp/lib/ /usr/*/gfortran32_mp/lib/ /usr/local/lib64 /usr/local/lib /opt/lib64 /opt/lib /opt/*/lib64 /opt/*/lib /opt/*/gfortran64_mp/lib/ /opt/*/gfortran32_mp/lib/
)
if (ACMLMP_LIBRARY)
set(ACMLMP_LIBRARIES ${ACMLMP_LIBRARY})
set(ACMLMP_FOUND "YES")
else ()
set(ACMLMP_FOUND "NO")
endif ()
if (ACMLMP_FOUND)
if (NOT ACMLMP_FIND_QUIETLY)
message(STATUS "Found the ACMLMP library: ${ACMLMP_LIBRARIES}")
endif ()
else ()
if (ACMLMP_FIND_REQUIRED)
message(FATAL_ERROR "Could not find the ACMLMP library")
endif ()
endif ()
# Deprecated declarations.
get_filename_component (NATIVE_ACMLMP_LIB_PATH ${ACMLMP_LIBRARY} PATH)
mark_as_advanced(
ACMLMP_LIBRARY
)