Skip to content

Commit

Permalink
Enable c++11 (needed for structure {}-initialization)
Browse files Browse the repository at this point in the history
Also use CMAKE_CXX_FLAGS for passing extra compiler flags instead of
ADD_DEFINITIONS
  • Loading branch information
AMDmi3 committed Apr 6, 2016
1 parent 9f8855b commit b095d43
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -84,15 +84,12 @@ INCLUDE_DIRECTORIES(SYSTEM
/usr/local/include
)

ADD_DEFINITIONS(-Wall -Wextra )
#ADD_DEFINITIONS(-Weffc++) #Extra debug
ADD_DEFINITIONS(-g)
ADD_DEFINITIONS(-O2)
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall -Wextra")

IF (NOT MINGW)
ADD_DEFINITIONS(-ftree-vectorize)
ADD_DEFINITIONS(-ffast-math)
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -ftree-vectorize -ffast-math")
ENDIF (NOT MINGW)
ADD_DEFINITIONS(-msse2)
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -msse2")



Expand Down

0 comments on commit b095d43

Please sign in to comment.