laristra / cinch

A mirror of cinch's internal gitlab repository.
Other
22 stars 21 forks source link

Add FindJali.cmake #48

Open junghans opened 7 years ago

junghans commented 7 years ago

Portage uses Jali, so we should add a find macro to cinch.

@cmsquared: Checking for Mesh.hh and libJali.a, correct?

cmsquared commented 7 years ago

@raovgarimella might have some suggestions, but I think finding the paths to those two should work.

raovgarimella commented 7 years ago

There should be a JaliConfig.cmake under the JALI_INSTALL_DIR/lib. If you find that, you should be all set

junghans commented 7 years ago

JaliConfig.cmake only exists if you have Jali, I want to create a macro, which we can already run independently of an actually Jali installation.

junghans commented 7 years ago

If we are using config files only, we will have to deal with an error message like:

CMake Warning at config/packages.cmake:146 (find_package):
  By not providing "FindJali.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "Jali", but
  CMake did not find one.

  Could not find a package configuration file provided by "Jali" with any of
  the following names:

    JaliConfig.cmake
    jali-config.cmake

  Add the installation prefix of "Jali" to CMAKE_PREFIX_PATH or set
  "Jali_DIR" to a directory containing one of the above files.  If "Jali"
  provides a separate development package or SDK, be sure it has been
  installed.