1

Do you guys have anby examples that uses FindHDF5 in its cmake? the documentation does not tell how to call this function. FindHDF5() gives error that Unknown CMake command "FindHDF5" I have 3.7 cmake installed on the machine Thanks for your helps Regards,

0

1 Answer 1

3

It's

find_package(HDF5 REQUIRED)

The keyword REQUIRED is not necessarily required.

In general, if you look at the documentation for FindXXX, you can import it with find_package(XXX).

Sign up to request clarification or add additional context in comments.

2 Comments

Thanks for your answer, I just wonder why this FindHDF5 does not work on its own ? cmake.org/cmake/help/v3.0/module/FindHDF5.html
It's this one, but it's not a function you can call like this :) Not so intuitive, I agree.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.