summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2002-01-22 12:18:37 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2002-01-22 12:18:37 (GMT)
commit1c26b1b73cbe987029f0a4558f432fd9dc4422a9 (patch)
tree51244156760c04bc94b7cdc991fc0e9bed4492d5 /Tests
parent2adf9890f6267d816308067b9f71cf024851e0ef (diff)
downloadCMake-1c26b1b73cbe987029f0a4558f432fd9dc4422a9.zip
CMake-1c26b1b73cbe987029f0a4558f432fd9dc4422a9.tar.gz
CMake-1c26b1b73cbe987029f0a4558f432fd9dc4422a9.tar.bz2
BUG: must use ANSI flags for complex test now.
Diffstat (limited to 'Tests')
-rw-r--r--Tests/Complex/CMakeLists.txt10
-rw-r--r--Tests/ComplexOneConfig/CMakeLists.txt10
-rw-r--r--Tests/ComplexRelativePaths/CMakeLists.txt10
3 files changed, 30 insertions, 0 deletions
diff --git a/Tests/Complex/CMakeLists.txt b/Tests/Complex/CMakeLists.txt
index fd3a2ba..c28ea62 100644
--- a/Tests/Complex/CMakeLists.txt
+++ b/Tests/Complex/CMakeLists.txt
@@ -12,6 +12,16 @@ ENDIF (CMAKE_ANSI_CXXFLAGS)
ADD_DEFINITIONS(-DCMAKE_IS_FUN)
+# use the ANSI flags to compile complex as it uses cmSystemTools from
+# the cmake library which requires ansi
+IF (CMAKE_ANSI_CXXFLAGS)
+ SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CMAKE_ANSI_CXXFLAGS}")
+ENDIF (CMAKE_ANSI_CXXFLAGS)
+
+IF (CMAKE_ANSI_CFLAGS)
+ SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${CMAKE_ANSI_CFLAGS}")
+ENDIF (CMAKE_ANSI_CFLAGS)
+
#
# Include vars from a file and from a cache
#
diff --git a/Tests/ComplexOneConfig/CMakeLists.txt b/Tests/ComplexOneConfig/CMakeLists.txt
index fd3a2ba..c28ea62 100644
--- a/Tests/ComplexOneConfig/CMakeLists.txt
+++ b/Tests/ComplexOneConfig/CMakeLists.txt
@@ -12,6 +12,16 @@ ENDIF (CMAKE_ANSI_CXXFLAGS)
ADD_DEFINITIONS(-DCMAKE_IS_FUN)
+# use the ANSI flags to compile complex as it uses cmSystemTools from
+# the cmake library which requires ansi
+IF (CMAKE_ANSI_CXXFLAGS)
+ SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CMAKE_ANSI_CXXFLAGS}")
+ENDIF (CMAKE_ANSI_CXXFLAGS)
+
+IF (CMAKE_ANSI_CFLAGS)
+ SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${CMAKE_ANSI_CFLAGS}")
+ENDIF (CMAKE_ANSI_CFLAGS)
+
#
# Include vars from a file and from a cache
#
diff --git a/Tests/ComplexRelativePaths/CMakeLists.txt b/Tests/ComplexRelativePaths/CMakeLists.txt
index fd3a2ba..c28ea62 100644
--- a/Tests/ComplexRelativePaths/CMakeLists.txt
+++ b/Tests/ComplexRelativePaths/CMakeLists.txt
@@ -12,6 +12,16 @@ ENDIF (CMAKE_ANSI_CXXFLAGS)
ADD_DEFINITIONS(-DCMAKE_IS_FUN)
+# use the ANSI flags to compile complex as it uses cmSystemTools from
+# the cmake library which requires ansi
+IF (CMAKE_ANSI_CXXFLAGS)
+ SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CMAKE_ANSI_CXXFLAGS}")
+ENDIF (CMAKE_ANSI_CXXFLAGS)
+
+IF (CMAKE_ANSI_CFLAGS)
+ SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${CMAKE_ANSI_CFLAGS}")
+ENDIF (CMAKE_ANSI_CFLAGS)
+
#
# Include vars from a file and from a cache
#