Skip to content

Commit

Permalink
Polish CMakeLists.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
daquexian committed May 18, 2019
1 parent 7fd3e34 commit 9dacd3a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,10 @@ project(dabnn CXX)
message(STATUS "CMake Version: ${CMAKE_VERSION}")

if (NOT CMAKE_BUILD_TYPE OR CMAKE_BUILD_TYPE STREQUAL "")
message("No build type, set to Release")
message(STATUS "No build type, set to Release")
set(CMAKE_BUILD_TYPE "Release" CACHE STRING "" FORCE)
endif()
message("Build type: ${CMAKE_BUILD_TYPE}")

set(CMAKE_CXX_FLAGS_RELEASE "-O3 -DNDEBUG")
message(STATUS "Build type: ${CMAKE_BUILD_TYPE}")

set(CMAKE_EXPORT_COMPILE_COMMANDS ON)

Expand Down Expand Up @@ -41,6 +39,8 @@ endif()
if (${BNN_BUILD_ANDROID})
set(CMAKE_CXX_STANDARD 17)

set(CMAKE_CXX_FLAGS_RELEASE "-O3 -DNDEBUG")

if (${BNN_BUILD_TEST})
include(cmake/gtest.cmake)
configure_gtest()
Expand Down

0 comments on commit 9dacd3a

Please sign in to comment.