-
-
Notifications
You must be signed in to change notification settings - Fork 12.5k
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
hdf5: use CMake #157329
Conversation
4db51a9
to
8e94b1b
Compare
--enable-fortran | ||
--enable-cxx |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
potentially more.
Formula/h/hdf5.rb
Outdated
args << "--with-zlib=#{Formula["zlib"].opt_prefix}" if OS.linux? | ||
|
||
system "./configure", *args | ||
system "cmake", "-S", ".", "-B", "build", *std_cmake_args |
There was a problem hiding this comment.
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.
Co-authored-by: Julianus Pfeuffer <[email protected]>
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]>
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. |
Co-authored-by: Julianus Pfeuffer <[email protected]>
Co-authored-by: Julianus Pfeuffer <[email protected]>
Co-authored-by: Julianus Pfeuffer <[email protected]>
HOMEBREW_NO_INSTALL_FROM_API=1 brew install --build-from-source <formula>
, where<formula>
is the name of the formula you're submitting?brew test <formula>
, where<formula>
is the name of the formula you're submitting?brew audit --strict <formula>
(after doingHOMEBREW_NO_INSTALL_FROM_API=1 brew install --build-from-source <formula>
)? If this is a new formula, does it passbrew audit --new <formula>
?Closes #157078