On Tue, Apr 21, 2009 at 8:27 PM, Christian Kamm <[email protected]> wrote: > 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 >
Setting the LIBCONFIG_LDFLAGS cmake variable as: LIBCONFIG_LDFLAGS="-L/usr/local/lib -lconfig++" should do it. -Tomas --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "LDC - the LLVM D compiler" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/ldc-dev?hl=en -~----------~----~----~----~------~----~------~--~---
