Skip to content
This repository has been archived by the owner on Apr 15, 2020. It is now read-only.

Add OpenBLAS 0.3.0 #1468

Merged
merged 1 commit into from
Jun 9, 2018
Merged

Add OpenBLAS 0.3.0 #1468

merged 1 commit into from
Jun 9, 2018

Conversation

xsacha
Copy link
Contributor

@xsacha xsacha commented Jun 9, 2018

Update: Merged commits in to one

endif()
hunter_cacheable(OpenBLAS)
hunter_download(
PACKAGE_NAME OpenBLAS
PACKAGE_INTERNAL_DEPS_ID "2"
PACKAGE_UNRELOCATABLE_TEXT_FILES
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change will break old versions like 0.2.20-p0.

As far as I can see since version 0.3.0-p2 we will not need OpenBLAS custom build scheme, right? In this case I'm okay with removing 0.2.* versions since changing custom build scheme to CMake based build scheme is a super cool event :) We will not need PACKAGE_INTERNAL_DEPS_ID and PACKAGE_UNRELOCATABLE_TEXT_FILES in this case too.

Copy link
Contributor Author

@xsacha xsacha Jun 9, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or is there a way to make the PACKAGE_UNRELOCATABLE_TEXT_FILES use a dummy file for CMake instead?

I suppose hunter_configuration_types(OpenBLAS CONFIGURATION_TYPES Release) isn't needed either for CMake.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or is there a way to make the package_unrelocatable_text_files depend on some variable?

if(HUNTER_OpenBLAS_VERSION VERSION_LESS 0.3.0)
  set(
      _openblas_unrelocatable_text_files
      PACKAGE_UNRELOCATABLE_TEXT_FILES
      "lib/cmake/openblas/OpenBLASConfig.cmake
  )
else()
  set(_openblas_unrelocatable_text_files "")
endif()

hunter_download(
    PACKAGE_NAME OpenBLAS
    PACKAGE_INTERNAL_DEPS_ID "2"
    ${_openblas_unrelocatable_text_files}
)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, I've done that. Also made MSVC consistent (it didn't work previously in 0.2.20 anyway).

@ruslo ruslo merged commit 8ef2439 into ruslo:master Jun 9, 2018
@ruslo
Copy link
Owner

ruslo commented Jun 9, 2018

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants