Skip to content

Commit 373039f

Browse files
firewavedanmar
authored andcommitted
Minor Cleanups (cppcheck-opensource#1321)
* added CLion project folder to .gitignore * adjusted project name in CMakeLists.txt * avoid warning when compiling "Debug" with Visual Studio via CMake There was a GCC-style compiler flag in the common flags in compileroptions.cmake which caused the following warning: cl : Command line warning D9002 : ignoring unknown option '-O0' * compileroptions.cmake: restored original formatting
1 parent 12e58c8 commit 373039f

3 files changed

Lines changed: 6 additions & 2 deletions

File tree

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,3 +105,5 @@ snap/.snapcraft
105105
man/manual.log
106106
man/manual.tex
107107

108+
# CLion
109+
.idea

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
project(CppCheck)
1+
project(Cppcheck)
22
cmake_minimum_required(VERSION 2.8.11)
33

44
include(GNUInstallDirs)

cmake/compileroptions.cmake

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
set(EXTRA_C_FLAGS "")
22
set(EXTRA_C_FLAGS_RELEASE "-DNDEBUG")
3-
set(EXTRA_C_FLAGS_DEBUG "-DDEBUG -O0")
3+
set(EXTRA_C_FLAGS_DEBUG "-DDEBUG")
44

55
if (USE_CLANG)
66
set (CMAKE_C_COMPILER_ID "Clang")
@@ -104,6 +104,8 @@ if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU" OR
104104
endif()
105105

106106
set(EXTRA_C_FLAGS "${EXTRA_C_FLAGS} -Wall -std=c++0x")
107+
108+
set(EXTRA_C_FLAGS_DEBUG "${EXTRA_C_FLAGS_DEBUG} -O0")
107109

108110
endif()
109111

0 commit comments

Comments
 (0)