mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-28 19:25:27 +08:00
20 lines
895 B
Diff
20 lines
895 B
Diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index c324e224..4b82d767 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -389,11 +389,9 @@ if(NOT NO_LAPACKE)
|
|
install (FILES ${CMAKE_BINARY_DIR}/lapacke_mangling.h DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/openblas${SUFFIX64})
|
|
endif()
|
|
|
|
-include(FindPkgConfig QUIET)
|
|
-if(PKG_CONFIG_FOUND)
|
|
- configure_file(${PROJECT_SOURCE_DIR}/cmake/openblas.pc.in ${PROJECT_BINARY_DIR}/openblas${SUFFIX64}.pc @ONLY)
|
|
- install (FILES ${PROJECT_BINARY_DIR}/openblas${SUFFIX64}.pc DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig/)
|
|
-endif()
|
|
+# Install pkg-config files
|
|
+configure_file(${PROJECT_SOURCE_DIR}/cmake/openblas.pc.in ${PROJECT_BINARY_DIR}/openblas${SUFFIX64}.pc @ONLY)
|
|
+install (FILES ${PROJECT_BINARY_DIR}/openblas${SUFFIX64}.pc DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig/)
|
|
|
|
|
|
# GNUInstallDirs "DATADIR" wrong here; CMake search path wants "share".
|