diff --git a/.gitignore b/.gitignore index e4ff98272..f3780fc52 100644 --- a/.gitignore +++ b/.gitignore @@ -105,3 +105,5 @@ snap/.snapcraft man/manual.log man/manual.tex +# CLion +.idea diff --git a/CMakeLists.txt b/CMakeLists.txt index 423da76cb..23540ef95 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,4 @@ -project(CppCheck) +project(Cppcheck) cmake_minimum_required(VERSION 2.8.11) include(GNUInstallDirs) diff --git a/cmake/compileroptions.cmake b/cmake/compileroptions.cmake index 8f6e957ff..ef41288a8 100644 --- a/cmake/compileroptions.cmake +++ b/cmake/compileroptions.cmake @@ -1,6 +1,6 @@ set(EXTRA_C_FLAGS "") set(EXTRA_C_FLAGS_RELEASE "-DNDEBUG") -set(EXTRA_C_FLAGS_DEBUG "-DDEBUG -O0") +set(EXTRA_C_FLAGS_DEBUG "-DDEBUG") if (USE_CLANG) set (CMAKE_C_COMPILER_ID "Clang") @@ -104,6 +104,8 @@ if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU" OR endif() set(EXTRA_C_FLAGS "${EXTRA_C_FLAGS} -Wall -std=c++0x") + + set(EXTRA_C_FLAGS_DEBUG "${EXTRA_C_FLAGS_DEBUG} -O0") endif()