Restore CMake packaging removed in r858
authorjulie <julielangou@users.noreply.github.com>
Mon, 7 Feb 2011 14:54:19 +0000 (14:54 +0000)
committerjulie <julielangou@users.noreply.github.com>
Mon, 7 Feb 2011 14:54:19 +0000 (14:54 +0000)
- Brad King (Kitware)

CMakeLists.txt

index 0abd3e4e12f7c01ffdf2838369f125285a73ddb6..946da31c3b6ac1bfa001dd2cd2759ebf5fa262f3 100644 (file)
@@ -147,6 +147,8 @@ else( NOT BLAS_FOUND )
 endif( NOT BLAS_FOUND )
 configure_file(${LAPACK_SOURCE_DIR}/lapack-config-version.cmake.in
   ${LAPACK_BINARY_DIR}/lapack-config-version.cmake @ONLY)
+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)
  install(FILES
@@ -161,6 +163,5 @@ install(FILES
   ${LAPACK_BINARY_DIR}/lapack-config-version.cmake
   DESTINATION lib/cmake/lapack-${LAPACK_VERSION}
   )
-
-configure_file(${LAPACK_SOURCE_DIR}/lapack-config-install.cmake.in
-  ${LAPACK_BINARY_DIR}/CMakeFiles/lapack-config.cmake @ONLY)
+install(EXPORT lapack-targets
+  DESTINATION lib/cmake/lapack-${LAPACK_VERSION})