+++ /dev/null
-# - 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)
-
-
+++ /dev/null
-include("@LAPACK_BINARY_DIR@/lapack-targets.cmake")
+++ /dev/null
-get_filename_component(_SELF_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
-include(${_SELF_DIR}/lapack-targets.cmake)
+++ /dev/null
-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()
-
enable_testing()
# --------------------------------------------------
+set(CMAKE_MODULE_PATH ${LAPACK_SOURCE_DIR} ${CMAKE_MODULE_PATH})
+
# Organize output files. On Windows this also keeps .dll files next
# to the .exe files that need them, making tests easy to run.
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${LAPACK_BINARY_DIR}/bin)
else( NOT BLAS_FOUND )
export(TARGETS lapack FILE lapack-targets.cmake)
endif( NOT BLAS_FOUND )
-configure_file(${LAPACK_SOURCE_DIR}/CMAKE/lapack-config-version.cmake.in
+configure_file(${LAPACK_SOURCE_DIR}/lapack-config-version.cmake.in
${LAPACK_BINARY_DIR}/lapack-config-version.cmake @ONLY)
-configure_file(${LAPACK_SOURCE_DIR}/CMAKE/lapack-config-build.cmake.in
+configure_file(${LAPACK_SOURCE_DIR}/lapack-config.cmake.in
${LAPACK_BINARY_DIR}/lapack-config.cmake @ONLY)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/lapack.pc.in ${CMAKE_CURRENT_BINARY_DIR}/lapack.pc)
DESTINATION ${PKG_CONFIG_DIR}
)
-configure_file(${LAPACK_SOURCE_DIR}/CMAKE/lapack-config-install.cmake.in
+configure_file(${LAPACK_SOURCE_DIR}/lapack-config-install.cmake.in
${LAPACK_BINARY_DIR}/CMakeFiles/lapack-config.cmake @ONLY)
install(FILES
${LAPACK_BINARY_DIR}/CMakeFiles/lapack-config.cmake
--- /dev/null
+# - 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)
+
+
--- /dev/null
+get_filename_component(_SELF_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
+include(${_SELF_DIR}/lapack-targets.cmake)
--- /dev/null
+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()
+
--- /dev/null
+include("@LAPACK_BINARY_DIR@/lapack-targets.cmake")