Skip to content

Commit 676a02d

Browse files
committed
Unneeded ALL_TARGETS checks removed
The if-checks prevent proper installig of cblas-targets.cmake. This may have been copied from main CMakeLists line 390 onwards.
1 parent 3f6e1ad commit 676a02d

File tree

1 file changed

+4
-21
lines changed

1 file changed

+4
-21
lines changed

CBLAS/CMakeLists.txt

Lines changed: 4 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -44,28 +44,11 @@ if(BUILD_TESTING)
4444
add_subdirectory(examples)
4545
endif()
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

7053
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/cmake/cblas-config-version.cmake.in
7154
${LAPACK_BINARY_DIR}/${CBLASLIB}-config-version.cmake @ONLY)

0 commit comments

Comments
 (0)