Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Christian Butz
VTK
Commits
5dcdf21c
Commit
5dcdf21c
authored
May 04, 2011
by
David Partyka
Browse files
Check the C compiler not the C++ compile for std-c99 support.
Change-Id: I3ea578ab729d1d559da2d37f73d9921df6f90635
parent
72e486c2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Utilities/vtkhdf5/CMakeLists.txt
View file @
5dcdf21c
...
...
@@ -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
(
CheckC
XX
CompilerFlag
)
include
(
CheckCCompilerFlag
)
check_c
xx
_compiler_flag
(
-std=c99 HAVE_STD_C99
)
check_c
xx
_compiler_flag
(
-fomit-frame-pointer HAVE_OMIT_FRAME_POINTER
)
check_c
xx
_compiler_flag
(
-finline-functions HAVE_INLINE_FUNCTIONS
)
check_c
xx
_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
()
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment