diff options
author | rdb <[email protected]> | 2016-12-20 22:34:00 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2016-12-20 22:34:00 +0100 |
commit | f0c2c23ad1e2427ff060db1bae0294703f742a68 (patch) | |
tree | 3f92e882f6a0720fb6cde4ebd040e566a90eab45 /CMakeLists.txt | |
parent | 10473285bae659a3ae863df177564ef208d84b1d (diff) |
Explicitly disable use of GNU89 inline semantics
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 7a02a48f..34e55377 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -167,6 +167,8 @@ ENDIF() # Make sure we have C99-style inline semantics with GCC (4.3 or newer). IF(CMAKE_COMPILER_IS_GNUCC) + SET(CMAKE_C_FLAGS "-fno-gnu89-inline ${CMAKE_C_FLAGS}") + SET(OLD_REQUIRED_FLAGS "${CMAKE_REQUIRED_FLAGS}") # Force no inlining for the next test. SET(CMAKE_REQUIRED_FLAGS "${OLD_REQUIRED_FLAGS} -fno-inline") |