From efc41c634cecd30de5396d00f18d5f9f780f41c6 Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Sun, 31 Jul 2005 22:25:39 -0400 Subject: ENH: use ansi flags --- Tests/Complex/Executable/CMakeLists.txt | 1 + Tests/ComplexOneConfig/Executable/CMakeLists.txt | 1 + Tests/ComplexRelativePaths/Executable/CMakeLists.txt | 1 + 3 files changed, 3 insertions(+) diff --git a/Tests/Complex/Executable/CMakeLists.txt b/Tests/Complex/Executable/CMakeLists.txt index e36dc26..11332d1 100644 --- a/Tests/Complex/Executable/CMakeLists.txt +++ b/Tests/Complex/Executable/CMakeLists.txt @@ -4,6 +4,7 @@ CMAKE_MINIMUM_REQUIRED(VERSION 1.3) # SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DTEST_CXX_FLAGS") SET(CMAKE_C_FLAGS "${CMAKE_C} -DTEST_C_FLAGS") +SET(CMAKE_C_FLAGS "${CMAKE_ANSI_CFLAGS} ${CMAKE_C_FLAGS}") # Link to CMake lib LINK_DIRECTORIES(${Complex_BINARY_DIR}/../../Source) diff --git a/Tests/ComplexOneConfig/Executable/CMakeLists.txt b/Tests/ComplexOneConfig/Executable/CMakeLists.txt index e36dc26..11332d1 100644 --- a/Tests/ComplexOneConfig/Executable/CMakeLists.txt +++ b/Tests/ComplexOneConfig/Executable/CMakeLists.txt @@ -4,6 +4,7 @@ CMAKE_MINIMUM_REQUIRED(VERSION 1.3) # SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DTEST_CXX_FLAGS") SET(CMAKE_C_FLAGS "${CMAKE_C} -DTEST_C_FLAGS") +SET(CMAKE_C_FLAGS "${CMAKE_ANSI_CFLAGS} ${CMAKE_C_FLAGS}") # Link to CMake lib LINK_DIRECTORIES(${Complex_BINARY_DIR}/../../Source) diff --git a/Tests/ComplexRelativePaths/Executable/CMakeLists.txt b/Tests/ComplexRelativePaths/Executable/CMakeLists.txt index e36dc26..11332d1 100644 --- a/Tests/ComplexRelativePaths/Executable/CMakeLists.txt +++ b/Tests/ComplexRelativePaths/Executable/CMakeLists.txt @@ -4,6 +4,7 @@ CMAKE_MINIMUM_REQUIRED(VERSION 1.3) # SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DTEST_CXX_FLAGS") SET(CMAKE_C_FLAGS "${CMAKE_C} -DTEST_C_FLAGS") +SET(CMAKE_C_FLAGS "${CMAKE_ANSI_CFLAGS} ${CMAKE_C_FLAGS}") # Link to CMake lib LINK_DIRECTORIES(${Complex_BINARY_DIR}/../../Source) -- cgit v0.12