From 9b105c15096aa6a3bbb3d1985497f60ebe09e2b0 Mon Sep 17 00:00:00 2001 From: meijin Date: Tue, 7 May 2024 12:03:19 +0800 Subject: [PATCH] fix error build flags --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index f4d3b6d2..448f5ee8 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -58,10 +58,10 @@ endif() if (CMAKE_BUILD_TYPE STREQUAL Debug) set(LIBRARY_COMPILE_FLAGS -shared -fPIC -g -D_GNU_SOURCE -Wall) - set(TEST_COMPILE_FLAGS -o1) + set(TEST_COMPILE_FLAGS -O1) else() set(LIBRARY_COMPILE_FLAGS -shared -fPIC -D_GNU_SOURCE -fvisibility=hidden -Wall) - set(TEST_COMPILE_FLAGS -o1) + set(TEST_COMPILE_FLAGS -O1) endif() include_directories(${CUDA_HOME}/include)