@@ -39,60 +39,34 @@ install(FILES ${CBLAS_INCLUDE} ${LAPACK_BINARY_DIR}/include/cblas_mangling.h
39
39
COMPONENT Development
40
40
)
41
41
42
- # --------------------------------------------------
43
42
if (BUILD_TESTING )
44
43
add_subdirectory (testing )
45
44
add_subdirectory (examples )
46
45
endif ()
47
46
48
- if (NOT BLAS_FOUND )
49
- set (ALL_TARGETS ${ALL_TARGETS} ${BLASLIB} )
50
- endif ()
51
-
52
- # Export cblas targets from the
53
- # install tree, if any.
54
- set (_cblas_config_install_guard_target "" )
55
- if (ALL_TARGETS )
56
- install (EXPORT ${CBLASLIB} -targets
57
- DESTINATION ${CMAKE_INSTALL_LIBDIR} /cmake/${CBLASLIB}-${LAPACK_VERSION}
58
- COMPONENT Development
59
- )
60
- # Choose one of the cblas targets to use as a guard for
61
- # cblas-config.cmake to load targets from the install tree.
62
- list (GET ALL_TARGETS 0 _cblas_config_install_guard_target )
63
- endif ()
64
-
65
- # Export cblas targets from the build tree, if any.
66
- set (_cblas_config_build_guard_target "" )
67
- if (ALL_TARGETS )
68
- export (TARGETS ${ALL_TARGETS} FILE ${CBLASLIB} -targets.cmake )
69
-
70
- # Choose one of the cblas targets to use as a guard
71
- # for cblas-config.cmake to load targets from the build tree.
72
- list (GET ALL_TARGETS 0 _cblas_config_build_guard_target )
73
- endif ()
47
+ configure_file (${CMAKE_CURRENT_SOURCE_DIR} /cblas.pc.in
48
+ ${CMAKE_CURRENT_BINARY_DIR} /${CBLASLIB}.pc @ONLY )
49
+ install (FILES
50
+ ${CMAKE_CURRENT_BINARY_DIR} /${CBLASLIB}.pc
51
+ DESTINATION ${PKG_CONFIG_DIR}
52
+ COMPONENT Development
53
+ )
74
54
75
55
configure_file (${CMAKE_CURRENT_SOURCE_DIR} /cmake/cblas-config-version.cmake.in
76
56
${LAPACK_BINARY_DIR} /${CBLASLIB}-config-version.cmake @ONLY )
77
57
configure_file (${CMAKE_CURRENT_SOURCE_DIR} /cmake/cblas-config-build.cmake.in
78
58
${LAPACK_BINARY_DIR} /${CBLASLIB}-config.cmake @ONLY )
79
59
80
-
81
- configure_file (${CMAKE_CURRENT_SOURCE_DIR} /cblas.pc.in ${CMAKE_CURRENT_BINARY_DIR} /${CBLASLIB}.pc @ONLY )
82
- install (FILES
83
- ${CMAKE_CURRENT_BINARY_DIR} /${CBLASLIB}.pc
84
- DESTINATION ${PKG_CONFIG_DIR}
85
- )
86
-
87
60
configure_file (${CMAKE_CURRENT_SOURCE_DIR} /cmake/cblas-config-install.cmake.in
88
61
${CMAKE_CURRENT_BINARY_DIR} /CMakeFiles/${CBLASLIB}-config.cmake @ONLY )
89
62
install (FILES
90
63
${CMAKE_CURRENT_BINARY_DIR} /CMakeFiles/${CBLASLIB}-config.cmake
91
64
${LAPACK_BINARY_DIR} /${CBLASLIB}-config-version.cmake
92
65
DESTINATION ${CMAKE_INSTALL_LIBDIR} /cmake/${CBLASLIB}-${LAPACK_VERSION}
66
+ COMPONENT Development
93
67
)
94
68
95
- # install(EXPORT ${CBLASLIB}-targets
96
- # DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/${CBLASLIB}-${LAPACK_VERSION}
97
- # COMPONENT Development
98
- # )
69
+ install (EXPORT ${CBLASLIB} -targets
70
+ DESTINATION ${CMAKE_INSTALL_LIBDIR} /cmake/${CBLASLIB}-${LAPACK_VERSION}
71
+ COMPONENT Development
72
+ )
0 commit comments