From 4b70d2b3a118d19718f077f4f6f47b3d2bebb6fb Mon Sep 17 00:00:00 2001 From: Kubat <mael.martin31@gmail.com> Date: Sun, 27 Jun 2021 18:36:00 +0200 Subject: [PATCH] BUILD: Don't force the -g with CFLAGS If a debug build is needed, use the following invocation of cmake: cmake -Bbuild -DCMAKE_BUILD_TYPE=Debug Where: * -B stands for the build folder * -DCMAKE_BUILD_TYPE stands for the release type (Debug or Release) --- CMakeLists.txt | 2 -- 1 file changed, 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 24a57006..47406fc6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -24,8 +24,6 @@ find_library(AVFORMAT_LIBRARY avformat REQUIRED) set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fopenmp") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fopenmp") -set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g") -set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g") # Grab all files file(GLOB Vivy_SRC -- GitLab