diff --git a/CMakeLists.txt b/CMakeLists.txt index 9acb789..a4e932a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) @@ -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()