On 12.08.11 16:48:09, Doug wrote: > why? > > I've invoked: > > find_package(liba REQUIRED) > > not: > > find_package(libpng REQUIRED) > > My application has no knowledge about libpng, or libjpg or whatever the heck > else liba uses to load images.
I might have misinterpreted what you wrote so far, but if your executable links only against liba and only uses symbols from liba then indeed you won't need to link against libpng. However the linker errors you posted initially indicated otherwise, since the linker seemed to need libpng symbols when linking your executable. This means one of the object files or static libraries of your executable uses symbols from libpng, which means the executable needs to link against libpng. Andreas _______________________________________________ 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