timothybrooks / hdr-plus

HDR+ Implementation
MIT License
587 stars 201 forks source link

Could not find HalideConfig.cmake #75

Closed YelovSK closed 2 years ago

YelovSK commented 2 years ago

When running the cmake command I get a following error:

CMake Error at CMakeLists.txt:15 (find_package):
  By not providing "FindHalide.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "Halide", but
  CMake did not find one.

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

    HalideConfig.cmake
    halide-config.cmake

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

HalideConfig.cmake is in (HalideDir)\lib\cmake\Halide. I'm using 10.0.0 binary of Halide.

edit: i'm stupid, didn't remove "$" before the path

xuelimin commented 2 years ago

I have solved this problem, when you compiled the halied, the directory can make those folders: bin distrib include lib,make sure your halide make success. And then you should set Halide_DIR to the HDR CMakeLists.txt, just like set(Halide_DIR "/home/xx/Halide) .