Permalink
Browse files

addition to 0d9374a

  • Loading branch information...
1 parent 0d9374a commit 7371b68e71b6b7b5d715f79c947236be467d0d1a @abma abma committed Jul 7, 2014
Showing with 8 additions and 10 deletions.
  1. +8 −10 CMakeLists.txt
View
@@ -385,16 +385,14 @@ if ($ENV{CXX} MATCHES "icpc")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -axK") # SSE1
set(CXX_FLAGS_DEBUG_ADDITIONAL "-g -debug full")
elseif (CMAKE_COMPILER_IS_GNUCXX)
- if (NOT CUSTOM_CFLAGS)
- if (MARCH_FLAG)
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=${MARCH_FLAG}")
- Message(STATUS "using march=${MARCH_FLAG}")
- else (MARCH_FLAG)
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mtune=generic")
- Message(STATUS "using mtune=generic (unsure if it will sync in online gaming)")
- endif (MARCH_FLAG)
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${SSE_FLAGS}") # SSE1
- endif (NOT CUSTOM_CFLAGS)
+ if (MARCH_FLAG)
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=${MARCH_FLAG}")
+ Message(STATUS "using march=${MARCH_FLAG}")
+ else (MARCH_FLAG)
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mtune=generic")
+ Message(STATUS "using mtune=generic (unsure if it will sync in online gaming)")
+ endif (MARCH_FLAG)
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${SSE_FLAGS}") # SSE1
elseif (MSVC)
# nothing to be done here
else (MSVC)

0 comments on commit 7371b68

Please sign in to comment.