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
f57a2f42
Commit
f57a2f42
authored
May 04, 2011
by
Dave Partyka
Committed by
Kitware Robot
May 04, 2011
Browse files
Merge topic 'vtkhdf5-c99'
5dcdf21c
Check the C compiler not the C++ compile for std-c99 support.
parents
5f8010b0
5dcdf21c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Utilities/vtkhdf5/CMakeLists.txt
View file @
f57a2f42
...
...
@@ -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