Permalink
Browse files

Merge remote-tracking branch 'flare-engine/master'

  • Loading branch information...
dorkster committed Apr 1, 2013
2 parents 3702f17 + 6fe3c16 commit bd487fd33de293c8fbfc2d53202f7ee994084376
Showing with 4 additions and 1 deletion.
  1. +4 −1 CMakeLists.txt
View
@@ -8,7 +8,10 @@ Set (VERSION "0.18")
# Default definitions
if (NOT MSVC)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Wunused -Wshadow -Woverloaded-virtual -Wunreachable-code")
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-math-errno -fno-exceptions -ffast-math")
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-math-errno -fno-exceptions")
+ if (NOT CMAKE_CXX_COMPILER MATCHES "clang")
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -ffast-math")
+ endif (NOT CMAKE_CXX_COMPILER MATCHES "clang")
set(CMAKE_LD_FLAGS "-fwhole-program")
endif (NOT MSVC)

0 comments on commit bd487fd

Please sign in to comment.