Revert "Restore CMake packaging removed in r858"
authorjulie <julielangou@users.noreply.github.com>
Mon, 7 Feb 2011 14:54:16 +0000 (14:54 +0000)
committerjulie <julielangou@users.noreply.github.com>
Mon, 7 Feb 2011 14:54:16 +0000 (14:54 +0000)
This reverts commit e725dc754dd87ed45f21ba6981fca6dbc0530aa3.

CMakeLists.txt

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