Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hdf5: use CMake #157329

Closed
wants to merge 7 commits into from
Closed

hdf5: use CMake #157329

wants to merge 7 commits into from

Conversation

SMillerDev
Copy link
Member

  • Have you followed the guidelines for contributing?
  • Have you ensured that your commits follow the commit style guide?
  • Have you checked that there aren't other open pull requests for the same formula update/change?
  • Have you built your formula locally with HOMEBREW_NO_INSTALL_FROM_API=1 brew install --build-from-source <formula>, where <formula> is the name of the formula you're submitting?
  • Is your test running fine brew test <formula>, where <formula> is the name of the formula you're submitting?
  • Does your build pass brew audit --strict <formula> (after doing HOMEBREW_NO_INSTALL_FROM_API=1 brew install --build-from-source <formula>)? If this is a new formula, does it pass brew audit --new <formula>?

Closes #157078

@github-actions github-actions bot added the CI-linux-self-hosted Build on Linux self-hosted runner label Dec 14, 2023
Comment on lines -52 to -53
--enable-fortran
--enable-cxx
Copy link
Contributor

Choose a reason for hiding this comment

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

This is missing in your cmake config.

Copy link
Contributor

Choose a reason for hiding this comment

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

potentially more.

@github-actions github-actions bot added the autosquash Automatically squash pull request commits according to Homebrew style. label Jan 4, 2024
args << "--with-zlib=#{Formula["zlib"].opt_prefix}" if OS.linux?

system "./configure", *args
system "cmake", "-S", ".", "-B", "build", *std_cmake_args
Copy link
Contributor

Choose a reason for hiding this comment

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

try to add "-DCMAKE_CXX_FLAGS=-fmacro-prefix-map=$PWD=.", "-DCMAKE_C_FLAGS="-fmacro-prefix-map=$PWD=." or something similar to replace absolute paths in error messages with a dot.

Formula/h/hdf5.rb Outdated Show resolved Hide resolved
Co-authored-by: Julianus Pfeuffer <[email protected]>
@jpfeuffer
Copy link
Contributor

Almost. Now we just need to replace the shims in the compiler wrappers which are just bash scripts. I will make a suggestion.

Co-authored-by: Julianus Pfeuffer <[email protected]>
@jpfeuffer
Copy link
Contributor

jpfeuffer commented Jan 4, 2024

Ok great. h5fc is the fortran compiler. For this, you need to enable fortran. While we are at it, we should enable c++, too, as before with autotools.

Formula/h/hdf5.rb Outdated Show resolved Hide resolved
Co-authored-by: Julianus Pfeuffer <[email protected]>
Formula/h/hdf5.rb Outdated Show resolved Hide resolved
Co-authored-by: Julianus Pfeuffer <[email protected]>
Formula/h/hdf5.rb Outdated Show resolved Hide resolved
Co-authored-by: Julianus Pfeuffer <[email protected]>
@jpfeuffer jpfeuffer mentioned this pull request Jan 6, 2024
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
autosquash Automatically squash pull request commits according to Homebrew style. CI-linux-self-hosted Build on Linux self-hosted runner
Projects
None yet
Development

Successfully merging this pull request may close these issues.

HDF5 incomplete without building with CMake
2 participants