diff options
author | Brad King <brad.king@kitware.com> | 2016-06-09 13:08:59 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-06-09 13:11:10 (GMT) |
commit | ceebac93f66c3927997b708caf6f2eb2d1827593 (patch) | |
tree | 6d1e8ea37adef1d4e507d9c1e6b78ccd3298b5dd | |
parent | fa277b29e41a8de43913f0a63b273bb3dbc759e8 (diff) | |
download | CMake-ceebac93f66c3927997b708caf6f2eb2d1827593.zip CMake-ceebac93f66c3927997b708caf6f2eb2d1827593.tar.gz CMake-ceebac93f66c3927997b708caf6f2eb2d1827593.tar.bz2 |
Tests: Restore fix to Plugin test on Watcom compiler
The fix in commit v3.4.0-rc1~127^2 (Tests: Fix Plugin test on Watcom
compiler, 2015-09-03) was reverted accidentally by automated .c_str()
removal. Restore it and add a comment explaining why.
-rw-r--r-- | Tests/Plugin/src/example_exe.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Tests/Plugin/src/example_exe.cxx b/Tests/Plugin/src/example_exe.cxx index 86b54f7..017fbf6 100644 --- a/Tests/Plugin/src/example_exe.cxx +++ b/Tests/Plugin/src/example_exe.cxx @@ -31,7 +31,9 @@ int main() kwsys::DynamicLoader::LibraryHandle handle = kwsys::DynamicLoader::OpenLibrary(libName.c_str()); if (!handle) { - std::cerr << "Could not open plugin \"" << libName << "\"!" << std::endl; + // Leave the .c_str() on this one. It is needed on OpenWatcom. + std::cerr << "Could not open plugin \"" << libName.c_str() << "\"!" + << std::endl; return 1; } kwsys::DynamicLoader::SymbolPointer sym = |