On Sunday 19 April 2009 22:42 [email protected] wrote: > I am attempting to build ldc, but would like to keep the manually > built libraries under /usr/local. > ... > I've read a lot about cmake and have tried various things to point the > linker at the libraries in /usr/local/lib, but have been unsuccessful > so far. It seems that cmake can find any libraries that it has > created, but when they are created elsewhere, as is the case with > libconfig++, it is much harder. > > I can't believe how hard it is to specify a library path for this. I > tried using /usr as the prefix for everything built (in a virtual > machine) and everything went fine. Can anyone help?
CMake uses pkg-config for finding the right libconfig++ flags, so if you can get it to pick up your linker directory, you should be all set. Alternatively, I think you can put linker options directly into the target_link_libraries call. I hope that helps, Christian
signature.asc
Description: This is a digitally signed message part.
