libigl / libigl-example-project

A blank project example showing how to use libigl and cmake.
Mozilla Public License 2.0
142 stars 121 forks source link

FindLIBIGL.cmake not working #22

Closed alecjacobson closed 5 years ago

alecjacobson commented 5 years ago

If I issue:

git clone  https://github.com/libigl/libigl-example-project.git
cd libigl-example-project/
git clone https://github.com/libigl/libigl libigl
mkdir build
cd build/
cmake ../

I get this error:

CMake Error at cmake/FindLIBIGL.cmake:36 (include):
  include could not find load file:

    libigl
Call Stack (most recent call first):
  CMakeLists.txt:10 (find_package)
alecjacobson commented 5 years ago

Ah. I had a LIBIGL defined in my environment to an old libigl (so it was finding readOBJ.h over there but not finding the new libigl.cmake).