Add -msse with gcc

floating-point
Julius Michaelis 2012-05-04 18:55:41 +02:00
parent 03020bc742
commit f9410855b6
1 changed files with 7 additions and 0 deletions

View File

@ -143,9 +143,16 @@ if(MSVC_VERSION)
list(APPEND OC_CXX_FLAGS "/wd4267")
endif()
# Add some g++ warnings
if(CMAKE_COMPILER_IS_GNUCXX)
list(APPEND OC_CXX_FLAGS "-Wall -Wextra -Wredundant-decls -Wendif-labels -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Winit-self -Wsign-promo -Wno-reorder -Wno-unused-parameter -Wnon-virtual-dtor -Woverloaded-virtual -Wsign-promo")
endif()
# Enable SSE with g++/MinGW
if(CMAKE_COMPILER_IS_GNUCXX)
list(APPEND OC_CXX_FLAGS "-msse")
endif()
############################################################################
# List target source files. Don't directly create a target since we condi-
# tionally add more sources depending on configuration options later.