Explorar o código

BUG: Test needs ansi C code support.

Brad King %!s(int64=18) %!d(string=hai) anos
pai
achega
3ebd9aa08b
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  1. 5 0
      Tests/Preprocess/CMakeLists.txt

+ 5 - 0
Tests/Preprocess/CMakeLists.txt

@@ -3,6 +3,11 @@ project(Preprocess)
 # This test is meant both as a test and as a reference for supported
 # This test is meant both as a test and as a reference for supported
 # syntax on native tool command lines.
 # syntax on native tool command lines.
 
 
+# We need ansi C support.
+IF(CMAKE_ANSI_CFLAGS)
+  SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${CMAKE_ANSI_CFLAGS}")
+ENDIF(CMAKE_ANSI_CFLAGS)
+
 #-----------------------------------------------------------------------------
 #-----------------------------------------------------------------------------
 # Construct a C-string literal to test passing through a definition on
 # Construct a C-string literal to test passing through a definition on
 # the command line.  We configure the value into a header so it can be
 # the command line.  We configure the value into a header so it can be