Skip to content
Snippets Groups Projects
Commit d7690a47 authored by Roman Tsisyk's avatar Roman Tsisyk
Browse files

Add a workaround for Redhat Developer Toolset on RHEL/CentOS 5.x

parent 108319ef
No related branches found
No related tags found
No related merge requests found
...@@ -133,6 +133,11 @@ macro(enable_tnt_compile_flags) ...@@ -133,6 +133,11 @@ macro(enable_tnt_compile_flags)
) )
endif() endif()
if (CMAKE_COMPILER_IS_GNUCC)
# A workaround for Redhat Developer Toolset 2.x on RHEL/CentOS 5.x
add_compile_flags("C" "-fno-gnu89-inline")
endif()
add_definitions("-D__STDC_FORMAT_MACROS=1") add_definitions("-D__STDC_FORMAT_MACROS=1")
add_definitions("-D__STDC_LIMIT_MACROS=1") add_definitions("-D__STDC_LIMIT_MACROS=1")
add_definitions("-D__STDC_CONSTANT_MACROS=1") add_definitions("-D__STDC_CONSTANT_MACROS=1")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment