Merge pull request #89 from rdb/patch-1
Explicitly disable use of GNU89 inline semantics
This commit is contained in:
commit
19ba71e767
@ -167,6 +167,8 @@ ENDIF()
|
|||||||
|
|
||||||
# Make sure we have C99-style inline semantics with GCC (4.3 or newer).
|
# Make sure we have C99-style inline semantics with GCC (4.3 or newer).
|
||||||
IF(CMAKE_COMPILER_IS_GNUCC)
|
IF(CMAKE_COMPILER_IS_GNUCC)
|
||||||
|
SET(CMAKE_C_FLAGS "-fno-gnu89-inline ${CMAKE_C_FLAGS}")
|
||||||
|
|
||||||
SET(OLD_REQUIRED_FLAGS "${CMAKE_REQUIRED_FLAGS}")
|
SET(OLD_REQUIRED_FLAGS "${CMAKE_REQUIRED_FLAGS}")
|
||||||
# Force no inlining for the next test.
|
# Force no inlining for the next test.
|
||||||
SET(CMAKE_REQUIRED_FLAGS "${OLD_REQUIRED_FLAGS} -fno-inline")
|
SET(CMAKE_REQUIRED_FLAGS "${OLD_REQUIRED_FLAGS} -fno-inline")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user