Unverified Commit 42921b1a authored by fzyzcjy's avatar fzyzcjy Committed by GitHub
Browse files

Update CMakeLists to avoid warning of mis-matching arguments

parent 052a7244
......@@ -35,12 +35,12 @@ if(APPLE)
if(BUILD_DEBUG OR CMAKE_BUILD_TYPE MATCHES "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} -funroll-loops")
set(CLANG_CXX_FLAGS "${CLANG_CXX_FLAGS} -Wno-narrowing")
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}")
......
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