Skip to content
This repository was archived by the owner on Apr 15, 2020. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions cmake/projects/LAPACK/hunter-msvc.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Copyright (c) 2017, NeroBurner
# All rights reserved.

include(hunter_report_broken_package)

#hunter_cacheable(LAPACK) # install is always cacheable

# determine architecture
include(hunter_check_toolchain_definition)
hunter_check_toolchain_definition(NAME "_WIN64" DEFINED _WIN64_defined)

if(_WIN64_defined)
hunter_add_version(
PACKAGE_NAME
LAPACK
VERSION
"3.7.1"
URL
https://github.com/hunter-packages/lapack/releases/download/v3.7.1-p0/lapack-prebuilt-3.7.1-msvc-amd64.zip
SHA1
4a6e51690e36747d51e4334358abac99ca22378c
)
else()
hunter_report_broken_package("LAPACK on MSVC is only available on WIN64")
endif()

# pass cmake arguments
hunter_cmake_args(
LAPACK
CMAKE_ARGS
HUNTER_INSTALL_LICENSE_FILES=LICENSE
)

# Pick a download scheme
hunter_pick_scheme(DEFAULT url_sha1_unpack_install)

27 changes: 27 additions & 0 deletions cmake/projects/LAPACK/hunter-source.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Copyright (c) 2017, NeroBurner
# All rights reserved.

hunter_cacheable(LAPACK)

# List of versions here...
hunter_add_version(
PACKAGE_NAME
LAPACK
VERSION
"3.7.1"
URL
https://github.com/hunter-packages/lapack/archive/v3.7.1-p0.tar.gz
SHA1
82616c0878fbe42f22ece5fadfb38e09456ba5b5
)

# pass cmake arguments
hunter_cmake_args(
LAPACK
CMAKE_ARGS
HUNTER_INSTALL_LICENSE_FILES=LICENSE
)

# Pick a download scheme
hunter_pick_scheme(DEFAULT url_sha1_cmake)

28 changes: 5 additions & 23 deletions cmake/projects/LAPACK/hunter.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -10,29 +10,11 @@ include(hunter_download)
include(hunter_pick_scheme)
include(hunter_cacheable)

hunter_cacheable(LAPACK)

# List of versions here...
hunter_add_version(
PACKAGE_NAME
LAPACK
VERSION
"3.7.1"
URL
https://github.com/hunter-packages/lapack/archive/v3.7.1-p0.tar.gz
SHA1
82616c0878fbe42f22ece5fadfb38e09456ba5b5
)

# pass cmake arguments
hunter_cmake_args(
LAPACK
CMAKE_ARGS
HUNTER_INSTALL_LICENSE_FILES=LICENSE
)

# Pick a download scheme
hunter_pick_scheme(DEFAULT url_sha1_cmake)
if(NOT MSVC)
include("${CMAKE_CURRENT_LIST_DIR}/hunter-source.cmake")
else()
include("${CMAKE_CURRENT_LIST_DIR}/hunter-msvc.cmake")
endif()

# Download package.
# Two versions of library will be build:
Expand Down