Minor Cleanups (#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
This commit is contained in:
Oliver Stöneberg 2018-07-23 08:34:41 +02:00 committed by Daniel Marjamäki
parent 12e58c8521
commit 373039f034
3 changed files with 6 additions and 2 deletions

2
.gitignore vendored
View File

@ -105,3 +105,5 @@ snap/.snapcraft
man/manual.log
man/manual.tex
# CLion
.idea

View File

@ -1,4 +1,4 @@
project(CppCheck)
project(Cppcheck)
cmake_minimum_required(VERSION 2.8.11)
include(GNUInstallDirs)

View File

@ -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()