mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-24 13:37:50 +08:00
db807ad49f
* [clapack] FindLapack was not working for VS Generators due to extra ascii symbol "%3b" in linker dependencies which is ";" (Lists in IMPORTED_LOCATION do not work as expected) This commit is based on CMakes FindLAPACK and adds f2c to be checked * added include(SelectLibraryConfigurations) * [clapack] remove openblas patch * [openblas] add trailing _ on linux * [openblas] add find wrapper * [clapack] fix FindLapack * bump control to retrigger full CI build * [openblas] enable ninja * [mlpack] fix libary names for linkage. * bump control * Delete enable_openblas_compatibility.patch * Delete fix_underscore.patch * Update portfile.cmake * correct control version bump * fix control version bump * bump control * remove comments * remove lines in patch file * remove comment * remove unused var
39 lines
1.3 KiB
CMake
39 lines
1.3 KiB
CMake
include(vcpkg_common_functions)
|
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
vcpkg_download_distfile(ARCHIVE
|
|
URLS "http://www.netlib.org/clapack/clapack-3.2.1-CMAKE.tgz"
|
|
FILENAME "clapack-3.2.1.tgz"
|
|
SHA512 cf19c710291ddff3f6ead7d86bdfdeaebca21291d9df094bf0a8ef599546b007757fb2dbb19b56511bb53ef7456eac0c73973b9627bf4d02982c856124428b49
|
|
)
|
|
|
|
vcpkg_extract_source_archive_ex(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
ARCHIVE ${ARCHIVE}
|
|
PATCHES
|
|
remove_internal_blas.patch
|
|
)
|
|
|
|
vcpkg_configure_cmake(
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
PREFER_NINJA
|
|
OPTIONS
|
|
-DCMAKE_DEBUG_POSTFIX=d
|
|
)
|
|
|
|
vcpkg_install_cmake()
|
|
vcpkg_copy_pdbs()
|
|
|
|
#TODO: fix the official exported targets, since they are broken (luckily it seems that no-one uses them for now)
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH share/clapack)
|
|
|
|
#we install a cmake wrapper since the official FindLAPACK module in cmake does find clapack easily, unfortunately...
|
|
file(INSTALL ${CMAKE_CURRENT_LIST_DIR}/vcpkg-cmake-wrapper.cmake DESTINATION ${CURRENT_PACKAGES_DIR}/share/lapack)
|
|
file(INSTALL ${CMAKE_CURRENT_LIST_DIR}/FindLAPACK.cmake DESTINATION ${CURRENT_PACKAGES_DIR}/share/lapack)
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
|
|
|
# Handle copyright
|
|
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/clapack RENAME copyright)
|