File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -44,28 +44,11 @@ if(BUILD_TESTING)
4444 add_subdirectory (examples )
4545endif ()
4646
47- # Export cblas targets from the
48- # install tree, if any.
49- set (_cblas_config_install_guard_target "" )
50- if (ALL_TARGETS)
51- install (EXPORT ${CBLASLIB} -targets
52- DESTINATION ${CMAKE_INSTALL_LIBDIR} /cmake/${CBLASLIB} -${LAPACK_VERSION}
53- COMPONENT Development
54- )
55- # Choose one of the cblas targets to use as a guard for
56- # cblas-config.cmake to load targets from the install tree.
57- list (GET ALL_TARGETS 0 _cblas_config_install_guard_target)
58- endif ()
59-
60- # Export cblas targets from the build tree, if any.
61- set (_cblas_config_build_guard_target "" )
62- if (ALL_TARGETS)
63- export (TARGETS ${ALL_TARGETS} FILE ${CBLASLIB} -targets.cmake )
47+ install (EXPORT ${CBLASLIB} -targets
48+ DESTINATION ${CMAKE_INSTALL_LIBDIR} /cmake/${CBLASLIB} -${LAPACK_VERSION}
49+ COMPONENT Development
50+ )
6451
65- # Choose one of the cblas targets to use as a guard
66- # for cblas-config.cmake to load targets from the build tree.
67- list (GET ALL_TARGETS 0 _cblas_config_build_guard_target)
68- endif ()
6952
7053configure_file (${CMAKE_CURRENT_SOURCE_DIR} /cmake/cblas-config-version.cmake.in
7154 ${LAPACK_BINARY_DIR} /${CBLASLIB}-config-version.cmake @ONLY )
You can’t perform that action at this time.
0 commit comments