summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-06-10 13:09:50 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2016-06-10 13:09:50 (GMT)
commit5d078868f00ff8dd514c7c35542aaf2eb0b5ef5f (patch)
tree9e4fda2b8de6e027d1dcc2965bb09be67df888f4 /Tests
parent1bde72a390fd734795a3f5f4d09a3e279b5d61b8 (diff)
parentceebac93f66c3927997b708caf6f2eb2d1827593 (diff)
downloadCMake-5d078868f00ff8dd514c7c35542aaf2eb0b5ef5f.zip
CMake-5d078868f00ff8dd514c7c35542aaf2eb0b5ef5f.tar.gz
CMake-5d078868f00ff8dd514c7c35542aaf2eb0b5ef5f.tar.bz2
Merge topic 'watcom-workaround'
ceebac93 Tests: Restore fix to Plugin test on Watcom compiler
Diffstat (limited to 'Tests')
-rw-r--r--Tests/Plugin/src/example_exe.cxx4
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 =