I added a simple:

target_link_libraries(myprogram geotiff)

to my CMakeLists.txt file. I have a libgeotiff.so in a directory on my
LD_LIBRARY_PATH. The code compiled, but when I tried to run it, I got
an error that I was missing libgeotiff.so.2. I made a symlink from
libgeotiff.so.2 to libgeotiff.so, and then everything worked. Why was
this .2 introduced? Is there either 1) a way to stop it from getting
introduced or 2) a way to tell it "just use the closest file" so it
would use the libgeotiff.so without me needing to make a symlink?

Thanks,

David
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to