diff options
author | kcat <[email protected]> | 2016-12-20 13:43:59 -0800 |
---|---|---|
committer | GitHub <[email protected]> | 2016-12-20 13:43:59 -0800 |
commit | 19ba71e767041c4f4b5f2f376ea0136c12dec2e7 (patch) | |
tree | 9b1f2b8bd172ec3ff6219576bfbc81b751949d92 | |
parent | 70378925b0a9dbc58cc49e7888afcf4b7d55a17c (diff) | |
parent | f0c2c23ad1e2427ff060db1bae0294703f742a68 (diff) |
Merge pull request #89 from rdb/patch-1
Explicitly disable use of GNU89 inline semantics
-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") |