diff options
author | Brad King <brad.king@kitware.com> | 2015-09-03 13:34:47 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-09-03 13:34:47 (GMT) |
commit | d2b8229d02ff7362f36674ab3470f11aea13088e (patch) | |
tree | bc99310e9f6a321e82508ab27d221e62c55886aa | |
parent | 89958fd06e16d4ec413f5d011550331734561607 (diff) | |
download | CMake-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.
-rw-r--r-- | Tests/Plugin/src/example_exe.cxx | 2 |
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 = |