summaryrefslogtreecommitdiffstats
path: root/Tests/ComplexOneConfig/Executable
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2002-03-07 17:13:45 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2002-03-07 17:13:45 (GMT)
commit61e87c3a6dea90a07e1f9f41e936d9ee26188111 (patch)
treee7ce4c85f19266c017f15f3d8cd37a025d1eb338 /Tests/ComplexOneConfig/Executable
parent9097446e90fc51dfc095ca6dcdc3618357dd4570 (diff)
downloadCMake-61e87c3a6dea90a07e1f9f41e936d9ee26188111.zip
CMake-61e87c3a6dea90a07e1f9f41e936d9ee26188111.tar.gz
CMake-61e87c3a6dea90a07e1f9f41e936d9ee26188111.tar.bz2
ENH: use the string class to force the dec compiler to instantiate some templates
Diffstat (limited to 'Tests/ComplexOneConfig/Executable')
-rw-r--r--Tests/ComplexOneConfig/Executable/complex.cxx7
1 files changed, 6 insertions, 1 deletions
diff --git a/Tests/ComplexOneConfig/Executable/complex.cxx b/Tests/ComplexOneConfig/Executable/complex.cxx
index ad41b75..428ce62 100644
--- a/Tests/ComplexOneConfig/Executable/complex.cxx
+++ b/Tests/ComplexOneConfig/Executable/complex.cxx
@@ -471,7 +471,12 @@ int main()
cmFailed("the LOAD_CACHE or CONFIGURE_FILE command is broken, "
"CACHE_TEST_VAR_INTERNAL is not defined.");
#else
- if(strcmp(CACHE_TEST_VAR_INTERNAL, "bar") != 0)
+ std::string cachetest = CACHE_TEST_VAR_INTERNAL;
+ std::string copy = cachetest;
+ cachetest.find("bar");
+ cachetest.rfind("bar");
+ copy = cachetest.substr(0, cachetest.size());
+ if(cachetest != "bar")
{
cmFailed("the LOAD_CACHE or CONFIGURE_FILE command is broken, "
"CACHE_TEST_VAR_INTERNAL == ", CACHE_TEST_VAR_INTERNAL);