summaryrefslogtreecommitdiffstats
path: root/Tests/Plugin/src
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-09-03 13:34:47 (GMT)
committerBrad King <brad.king@kitware.com>2015-09-03 13:34:47 (GMT)
commitd2b8229d02ff7362f36674ab3470f11aea13088e (patch)
treebc99310e9f6a321e82508ab27d221e62c55886aa /Tests/Plugin/src
parent89958fd06e16d4ec413f5d011550331734561607 (diff)
downloadCMake-d2b8229d02ff7362f36674ab3470f11aea13088e.zip
CMake-d2b8229d02ff7362f36674ab3470f11aea13088e.tar.gz
CMake-d2b8229d02ff7362f36674ab3470f11aea13088e.tar.bz2
Tests: Fix Plugin test on Watcom compiler
The Watcom compiler does not have stream operators for std::string. Since KWSys no longer provides the operators for us, just use c_str() to avoid the problem and allow the test to compile on Watcom.
Diffstat (limited to 'Tests/Plugin/src')
-rw-r--r--Tests/Plugin/src/example_exe.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tests/Plugin/src/example_exe.cxx b/Tests/Plugin/src/example_exe.cxx
index bc4b03e..12d9204 100644
--- a/Tests/Plugin/src/example_exe.cxx
+++ b/Tests/Plugin/src/example_exe.cxx
@@ -32,7 +32,7 @@ int main()
if(!handle)
{
std::cerr << "Could not open plugin \""
- << libName << "\"!" << std::endl;
+ << libName.c_str() << "\"!" << std::endl;
return 1;
}
kwsys::DynamicLoader::SymbolPointer sym =