Unverified Commit b3109816 authored by Max Slater's avatar Max Slater Committed by GitHub
Browse files

Merge pull request #1 from fzyzcjy/patch-1

Update CMakeLists to avoid warning of mis-matching arguments
parents 052a7244 42921b1a
...@@ -35,12 +35,12 @@ if(APPLE) ...@@ -35,12 +35,12 @@ if(APPLE)
if(BUILD_DEBUG OR CMAKE_BUILD_TYPE MATCHES "Debug") if(BUILD_DEBUG OR CMAKE_BUILD_TYPE MATCHES "Debug")
set(CMAKE_BUILD_TYPE Debug) set(CMAKE_BUILD_TYPE Debug)
else(BUILD_DEBUG) else(BUILD_DEBUG OR CMAKE_BUILD_TYPE MATCHES "Debug")
set(CLANG_CXX_FLAGS "${CLANG_CXX_FLAGS} -O3") set(CLANG_CXX_FLAGS "${CLANG_CXX_FLAGS} -O3")
set(CLANG_CXX_FLAGS "${CLANG_CXX_FLAGS} -funroll-loops") set(CLANG_CXX_FLAGS "${CLANG_CXX_FLAGS} -funroll-loops")
set(CLANG_CXX_FLAGS "${CLANG_CXX_FLAGS} -Wno-narrowing") set(CLANG_CXX_FLAGS "${CLANG_CXX_FLAGS} -Wno-narrowing")
set(CLANG_CXX_FLAGS "${CLANG_CXX_FLAGS} -Wno-deprecated-register") set(CLANG_CXX_FLAGS "${CLANG_CXX_FLAGS} -Wno-deprecated-register")
endif(BUILD_DEBUG) endif(BUILD_DEBUG OR CMAKE_BUILD_TYPE MATCHES "Debug")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CLANG_CXX_FLAGS}") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CLANG_CXX_FLAGS}")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment