diff options
author | julie <julielangou@users.noreply.github.com> | 2011-02-07 14:37:01 +0000 |
---|---|---|
committer | julie <julielangou@users.noreply.github.com> | 2011-02-07 14:37:01 +0000 |
commit | efbb122bafe7854fcae4275f6fea3cfac0327485 (patch) | |
tree | f28ea098389d0fed5b3195b144415c4552578658 /CMAKE | |
parent | f94d9bdfebf800c66da5032f3a1d5e0d13d528ac (diff) | |
download | lapack-efbb122bafe7854fcae4275f6fea3cfac0327485.tar.gz lapack-efbb122bafe7854fcae4275f6fea3cfac0327485.tar.bz2 lapack-efbb122bafe7854fcae4275f6fea3cfac0327485.zip |
Move CMake files to a subdirectory
Diffstat (limited to 'CMAKE')
-rw-r--r-- | CMAKE/CheckTimeFunction.cmake | 28 | ||||
-rw-r--r-- | CMAKE/lapack-config-build.cmake.in | 1 | ||||
-rw-r--r-- | CMAKE/lapack-config-install.cmake.in | 2 | ||||
-rw-r--r-- | CMAKE/lapack-config-version.cmake.in | 8 |
4 files changed, 39 insertions, 0 deletions
diff --git a/CMAKE/CheckTimeFunction.cmake b/CMAKE/CheckTimeFunction.cmake new file mode 100644 index 00000000..350a5913 --- /dev/null +++ b/CMAKE/CheckTimeFunction.cmake @@ -0,0 +1,28 @@ +# - Check if the Fortran function exists. +# CHECK_TIME_FUNCTION(FUNCTION VARIABLE TYPE) +# - macro which checks if the Fortran function exists +# FUNCTION - the name of the Fortran function +# VARIABLE - variable to store the result +# + +macro(CHECK_TIME_FUNCTION FUNCTION VARIABLE) + + try_compile(RES + ${PROJECT_BINARY_DIR}/INSTALL + ${PROJECT_SOURCE_DIR}/INSTALL + TIMING secondtst_${FUNCTION} + OUTPUT_VARIABLE OUTPUT) + + if(RES) + set(${VARIABLE} ${FUNCTION} CACHE INTERNAL "Have Fortran function ${FUNCTION}") + message(STATUS "Looking for Fortran ${FUNCTION} - found") + file(APPEND ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeOutput.log + "Fortran ${FUNCTION} exists. ${OUTPUT} \n\n") + else(RES) + message(STATUS "Looking for Fortran ${FUNCTION} - not found") + file(APPEND ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeError.log + "Fortran ${FUNCTION} does not exist. \n ${OUTPUT} \n") + endif(RES) +endmacro(CHECK_TIME_FUNCTION) + + diff --git a/CMAKE/lapack-config-build.cmake.in b/CMAKE/lapack-config-build.cmake.in new file mode 100644 index 00000000..8d60cc88 --- /dev/null +++ b/CMAKE/lapack-config-build.cmake.in @@ -0,0 +1 @@ +include("@LAPACK_BINARY_DIR@/lapack-targets.cmake") diff --git a/CMAKE/lapack-config-install.cmake.in b/CMAKE/lapack-config-install.cmake.in new file mode 100644 index 00000000..0c55fc17 --- /dev/null +++ b/CMAKE/lapack-config-install.cmake.in @@ -0,0 +1,2 @@ +get_filename_component(_SELF_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH) +include(${_SELF_DIR}/lapack-targets.cmake) diff --git a/CMAKE/lapack-config-version.cmake.in b/CMAKE/lapack-config-version.cmake.in new file mode 100644 index 00000000..2caeb4ab --- /dev/null +++ b/CMAKE/lapack-config-version.cmake.in @@ -0,0 +1,8 @@ +set(PACKAGE_VERSION "@LAPACK_VERSION@") +if(NOT ${PACKAGE_FIND_VERSION} VERSION_GREATER ${PACKAGE_VERSION}) + set(PACKAGE_VERSION_COMPATIBLE 1) + if(${PACKAGE_FIND_VERSION} VERSION_EQUAL ${PACKAGE_VERSION}) + set(PACKAGE_VERSION_EXACT 1) + endif() +endif() + |