summaryrefslogtreecommitdiffstats
path: root/Tests/ComplexRelativePaths/Executable
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2005-07-29 18:02:51 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2005-07-29 18:02:51 (GMT)
commit76e14b4f1a53e295613593a8c731d39db2617c1a (patch)
tree53e4bf66d329afe17104e3bc335cef66979b6145 /Tests/ComplexRelativePaths/Executable
parentdb28904467764a496be7cde1c903368afc1f8da3 (diff)
downloadCMake-76e14b4f1a53e295613593a8c731d39db2617c1a.zip
CMake-76e14b4f1a53e295613593a8c731d39db2617c1a.tar.gz
CMake-76e14b4f1a53e295613593a8c731d39db2617c1a.tar.bz2
ENH: do not test for c and cxx flags on visual studio as it does not work yet
Diffstat (limited to 'Tests/ComplexRelativePaths/Executable')
-rw-r--r--Tests/ComplexRelativePaths/Executable/complex.cxx28
1 files changed, 17 insertions, 11 deletions
diff --git a/Tests/ComplexRelativePaths/Executable/complex.cxx b/Tests/ComplexRelativePaths/Executable/complex.cxx
index a8356f1..1a35978 100644
--- a/Tests/ComplexRelativePaths/Executable/complex.cxx
+++ b/Tests/ComplexRelativePaths/Executable/complex.cxx
@@ -374,21 +374,27 @@ int main()
#else
cmPassed("CMake CMAKE_CXX_FLAGS is being passed to the compiler.");
#endif
+ std::string gen = CMAKE_GENERATOR;
+ // visual studio is currently broken for c flags
+ if(gen.find("Visual") == gen.npos)
+ {
#ifdef TEST_C_FLAGS
- cmFailed("CMake CMAKE_C_FLAGS are being passed to c++ files the compiler!");
+ cmFailed("CMake CMAKE_C_FLAGS are being passed to c++ files the compiler!");
#else
- cmPassed("CMake CMAKE_C_FLAGS are not being passed to c++ files.");
+ cmPassed("CMake CMAKE_C_FLAGS are not being passed to c++ files.");
#endif
- char msg[1024];
- if(TestCFlags(msg))
- {
- cmPassed(
- "CMake CMAKE_C_FLAGS are being passed to c files and CXX flags are not.");
- }
- else
- {
- cmFailed(msg);
+ char msg[1024];
+ if(TestCFlags(msg))
+ {
+ cmPassed(
+ "CMake CMAKE_C_FLAGS are being passed to c files and CXX flags are not.");
+ }
+ else
+ {
+ cmFailed(msg);
+ }
}
+
// ----------------------------------------------------------------------
// Test ADD_DEFINITIONS