File tree Expand file tree Collapse file tree 2 files changed +1
-17
lines changed Expand file tree Collapse file tree 2 files changed +1
-17
lines changed Original file line number Diff line number Diff line change @@ -72,21 +72,6 @@ macro(add_polly_loadable_module name)
72
72
endif ()
73
73
endmacro (add_polly_loadable_module )
74
74
75
- # Use C99-compatible compile mode for all C source files of a target.
76
- function (target_enable_c99 _target )
77
- if (CMAKE_VERSION VERSION_GREATER "3.1" )
78
- set_target_properties ("${_target} " PROPERTIES C_STANDARD 99 )
79
- elseif (CMAKE_COMPILER_IS_GNUCC )
80
- get_target_property (_sources "${_target} " SOURCES )
81
- foreach (_file IN LISTS _sources )
82
- get_source_file_property (_lang "${_file} " LANGUAGE )
83
- if (_lang STREQUAL "C" )
84
- set_source_files_properties (${_file} COMPILE_FLAGS "-std=gnu99" )
85
- endif ()
86
- endforeach ()
87
- endif ()
88
- endfunction ()
89
-
90
75
# Recursive helper for setup_source_group. Traverse the file system and add
91
76
# source files matching the glob_expr to the prefix, recursing into
92
77
# subdirectories as they are encountered
Original file line number Diff line number Diff line change @@ -293,8 +293,7 @@ if (POLLY_BUNDLED_ISL)
293
293
)
294
294
295
295
# ISL requires at least C99 to compile. gcc < 5.0 use -std=gnu89 as default.
296
- target_enable_c99 (PollyISL )
297
- target_enable_c99 (polly-isl-test )
296
+ set_property (TARGET PollyISL polly-isl-test PROPERTY C_STANDARD 99 )
298
297
endif (POLLY_BUNDLED_ISL )
299
298
300
299
set (PET_SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR} /pet" )
You can’t perform that action at this time.
0 commit comments