Closed GoroYeh-HRI closed 10 months ago
I'll defer to @jmr since I don't poke at the CMake files much. I'm not sure that we support FindPackage automatically.
What's the goal here? Are you trying to just get something working for yourself, or do you want do distribute a CMakeLists.txt
for others to use?
Why can't s2geometry find absl?
The error is from cloud_mapper
not finding absl
. Did you also make install
absl, or also add it to include_directories
?
I actually resolved this by writing the CMakeLists.txt as this:
Also, I installed everything under /usr/local/include
and it's able to find.
Hello, I followed your instructions for installing s2geometry and I confirmed it is installed under
![image](https://github.com/google/s2geometry/assets/137837175/f1c3e42c-2e2e-4d03-8736-113f14551067)
/usr/local/include
However, when I'm trying to use s2geometry in my another Cmake project, in CMakeLists.txt I wrote![image](https://github.com/google/s2geometry/assets/137837175/a270562c-5114-457f-8b42-dad182badbad)
find_package(s2geometry REQUIRED)
and runcmake ..
. The compiler has error about this:Also, once I changed the CMakeLists.txt to be:
cmake .. worked, but when I run
Why can't s2geometry find absl?
make
:Any idea on how to resolve this issue? Thanks,