From 2e70c5094f4fbf68d89784d2c8dd899fa464bf24 Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Tue, 9 Apr 2002 12:24:44 -0400 Subject: ENH: check for compile flags and add back c flag to unix generator --- Tests/Complex/Executable/complex.cxx | 1 + Tests/Complex/Library/testConly.h | 2 +- Tests/ComplexOneConfig/Executable/complex.cxx | 1 + Tests/ComplexOneConfig/Library/testConly.h | 2 +- Tests/ComplexRelativePaths/Executable/complex.cxx | 1 + Tests/ComplexRelativePaths/Library/testConly.h | 2 +- 6 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Tests/Complex/Executable/complex.cxx b/Tests/Complex/Executable/complex.cxx index adde525..1415ce7 100644 --- a/Tests/Complex/Executable/complex.cxx +++ b/Tests/Complex/Executable/complex.cxx @@ -136,6 +136,7 @@ int main() cmFailed("CMake CMAKE_CXX_FLAGS is not being passed to the compiler!"); #else cmPassed("CMake CMAKE_CXX_FLAGS is being passed to the compiler."); +#endif // ---------------------------------------------------------------------- // Test ADD_DEFINITIONS diff --git a/Tests/Complex/Library/testConly.h b/Tests/Complex/Library/testConly.h index fc4c3f1..f1470a8 100644 --- a/Tests/Complex/Library/testConly.h +++ b/Tests/Complex/Library/testConly.h @@ -5,7 +5,7 @@ # define CMakeTest_EXPORT __declspec(dllimport) #endif #else -// unix needs nothing +/* unix needs nothing */ #define CMakeTest_EXPORT #endif diff --git a/Tests/ComplexOneConfig/Executable/complex.cxx b/Tests/ComplexOneConfig/Executable/complex.cxx index adde525..1415ce7 100644 --- a/Tests/ComplexOneConfig/Executable/complex.cxx +++ b/Tests/ComplexOneConfig/Executable/complex.cxx @@ -136,6 +136,7 @@ int main() cmFailed("CMake CMAKE_CXX_FLAGS is not being passed to the compiler!"); #else cmPassed("CMake CMAKE_CXX_FLAGS is being passed to the compiler."); +#endif // ---------------------------------------------------------------------- // Test ADD_DEFINITIONS diff --git a/Tests/ComplexOneConfig/Library/testConly.h b/Tests/ComplexOneConfig/Library/testConly.h index fc4c3f1..f1470a8 100644 --- a/Tests/ComplexOneConfig/Library/testConly.h +++ b/Tests/ComplexOneConfig/Library/testConly.h @@ -5,7 +5,7 @@ # define CMakeTest_EXPORT __declspec(dllimport) #endif #else -// unix needs nothing +/* unix needs nothing */ #define CMakeTest_EXPORT #endif diff --git a/Tests/ComplexRelativePaths/Executable/complex.cxx b/Tests/ComplexRelativePaths/Executable/complex.cxx index adde525..1415ce7 100644 --- a/Tests/ComplexRelativePaths/Executable/complex.cxx +++ b/Tests/ComplexRelativePaths/Executable/complex.cxx @@ -136,6 +136,7 @@ int main() cmFailed("CMake CMAKE_CXX_FLAGS is not being passed to the compiler!"); #else cmPassed("CMake CMAKE_CXX_FLAGS is being passed to the compiler."); +#endif // ---------------------------------------------------------------------- // Test ADD_DEFINITIONS diff --git a/Tests/ComplexRelativePaths/Library/testConly.h b/Tests/ComplexRelativePaths/Library/testConly.h index fc4c3f1..f1470a8 100644 --- a/Tests/ComplexRelativePaths/Library/testConly.h +++ b/Tests/ComplexRelativePaths/Library/testConly.h @@ -5,7 +5,7 @@ # define CMakeTest_EXPORT __declspec(dllimport) #endif #else -// unix needs nothing +/* unix needs nothing */ #define CMakeTest_EXPORT #endif -- cgit v0.12