diff options
author | Brad King <brad.king@kitware.com> | 2019-03-28 15:06:43 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-03-28 15:06:43 (GMT) |
commit | 24da7da68657c7c719e908f519c0f94da3a15701 (patch) | |
tree | 568cbc3959347de18f9822f13ed92a6132c57346 /Source/kwsys/DynamicLoader.hxx.in | |
parent | fcfbc01d68aac2eca7435bfa0f01e5d1b3524303 (diff) | |
parent | 816663495874e123c2d4a187edb6eab07593f10d (diff) | |
download | CMake-24da7da68657c7c719e908f519c0f94da3a15701.zip CMake-24da7da68657c7c719e908f519c0f94da3a15701.tar.gz CMake-24da7da68657c7c719e908f519c0f94da3a15701.tar.bz2 |
Merge branch 'upstream-KWSys' into update-kwsys
* upstream-KWSys:
KWSys 2019-03-28 (e92bdbe8)
Diffstat (limited to 'Source/kwsys/DynamicLoader.hxx.in')
-rw-r--r-- | Source/kwsys/DynamicLoader.hxx.in | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/Source/kwsys/DynamicLoader.hxx.in b/Source/kwsys/DynamicLoader.hxx.in index 08f2790..539c742 100644 --- a/Source/kwsys/DynamicLoader.hxx.in +++ b/Source/kwsys/DynamicLoader.hxx.in @@ -66,10 +66,23 @@ public: // Return type from DynamicLoader::GetSymbolAddress. typedef void (*SymbolPointer)(); + enum OpenFlags + { + // Search for dependent libraries beside the library being loaded. + // + // This is currently only supported on Windows. + SearchBesideLibrary = 0x00000001, + + AllOpenFlags = SearchBesideLibrary + }; + /** Load a dynamic library into the current process. * The returned LibraryHandle can be used to access the symbols in the - * library. */ + * library. The optional second argument is a set of flags to use when + * opening the library. If unrecognized or unsupported flags are specified, + * the library is not opened. */ static LibraryHandle OpenLibrary(const std::string&); + static LibraryHandle OpenLibrary(const std::string&, int); /** Attempt to detach a dynamic library from the * process. A value of true is returned if it is successful. */ |