Add CMake option to enable searching for DynLibs in an extra folder#373
Add CMake option to enable searching for DynLibs in an extra folder#373hhyyrylainen wants to merge 1 commit intoGameFoundry:masterfrom
Conversation
I was unable to fully test this as it seems that even though I have my libs in a sub folder but it seems that just loading them by name works. Maybe my RPATH setting comes into play here. At least on Linux.
|
Hi. Can you provide a use-case for this functionality? |
|
Not having to clutter the same folder as the executable with a bunch of libraries is nice. I coded this before I found out that at least on my computer the ld open lib function seems to take RPATH into account. |
|
Makes sense. Although I'd prefer this path is something we provide to |
|
I suppose it makes more sense to have this in the START_UP_DESC. I was in the mindset of adding cmake flags, as I'm going to next do a PR for adding flags for enabling RTTI and exceptions, and leaving debug info alone. So I just made this a flag as well. |
This adds an CMake option that when specifies enables the DynLib
loader to look for the library in an additional folder.
I was unable to fully test this as it seems that even though I have my
libs in a sub folder, it seems that just loading them by name
works. Maybe my RPATH setting comes into play here? This is at least
so on Linux.