CMake should only pass GCC options to GCC.

llvm-svn: 82607
This commit is contained in:
Edward O'Callaghan 2009-09-23 04:57:36 +00:00
parent 9a9c26eba6
commit 49dc8717a4

View File

@ -1,4 +1,6 @@
# Define compiler flags
#ADD_DEFINITIONS( -Wall -W -Werror -pedantic )
ADD_DEFINITIONS( -std=c99 -Wall -Wextra -W -pedantic -Wno-unused-parameter )
if( CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX )
#ADD_DEFINITIONS( -Wall -W -Werror -pedantic )
ADD_DEFINITIONS( -std=c99 -Wall -Wextra -W -pedantic -Wno-unused-parameter )
endif( CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX )