diff --git a/CMakeLists.txt b/CMakeLists.txt index 95ff005daa3e1fa253c4e7c5d4d4a00f016f2d45..d9e289df3e1ebf2ba3eeb1c11a914fc41bd5e9c1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -5,10 +5,10 @@ set(KF_CUDA OFF) set(QICHECHENG OFF) set(NSIGHT OFF) -add_definitions(-D_DEBUG) - set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g -O0") - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -O0") - set(CMAKE_BUILD_TYPE Debug) +SET(CMAKE_BUILD_TYPE "Release") + +SET(CMAKE_CXX_FLAGS_DEBUG "$ENV{CXXFLAGS} -O0 -Wall -g -ggdb") +SET(CMAKE_CXX_FLAGS_RELEASE "$ENV{CXXFLAGS} -O3 -Wall") #add_subdirectory(yolov5) #add_subdirectory(track)