GPURuntime: ensure compilation with C99
authorTobias Grosser <tobias@grosser.es>
Sun, 11 Sep 2016 07:32:50 +0000 (07:32 +0000)
committerTobias Grosser <tobias@grosser.es>
Sun, 11 Sep 2016 07:32:50 +0000 (07:32 +0000)
Otherwise, older compiler will error out on some of the C99 features we use.

llvm-svn: 281159

polly/tools/GPURuntime/CMakeLists.txt

index cc91702..4e17c27 100644 (file)
@@ -11,6 +11,8 @@ set_target_properties(GPURuntime
   PREFIX "lib"
   )
 
+set_property(TARGET GPURuntime PROPERTY C_STANDARD 99)
+
 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fvisibility=default ")
 if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
   set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fno-sanitize=all ")