An update will be applied December 9th, between 12PM and 1:00PM EST (UTC -5:00). The site may be slow during that time.

Commit 5dcdf21c authored by David Partyka's avatar David Partyka
Browse files

Check the C compiler not the C++ compile for std-c99 support.

Change-Id: I3ea578ab729d1d559da2d37f73d9921df6f90635
parent 72e486c2
......@@ -285,12 +285,12 @@ ENDIF (CMAKE_BUILD_TYPE MATCHES Debug)
# Compiler specific flags : Shouldn't there be compiler tests for these
#-----------------------------------------------------------------------------
IF (NOT WIN32)
include(CheckCXXCompilerFlag)
include(CheckCCompilerFlag)
check_cxx_compiler_flag(-std=c99 HAVE_STD_C99)
check_cxx_compiler_flag(-fomit-frame-pointer HAVE_OMIT_FRAME_POINTER)
check_cxx_compiler_flag(-finline-functions HAVE_INLINE_FUNCTIONS)
check_cxx_compiler_flag(-fno-common HAVE_NO_COMMON)
check_c_compiler_flag(-std=c99 HAVE_STD_C99)
check_c_compiler_flag(-fomit-frame-pointer HAVE_OMIT_FRAME_POINTER)
check_c_compiler_flag(-finline-functions HAVE_INLINE_FUNCTIONS)
check_c_compiler_flag(-fno-common HAVE_NO_COMMON)
if(HAVE_STD_C99)
set(STD_C99 "-std=c99")
endif()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment