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:
parent
12e58c8521
commit
373039f034
|
@ -105,3 +105,5 @@ snap/.snapcraft
|
||||||
man/manual.log
|
man/manual.log
|
||||||
man/manual.tex
|
man/manual.tex
|
||||||
|
|
||||||
|
# CLion
|
||||||
|
.idea
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
project(CppCheck)
|
project(Cppcheck)
|
||||||
cmake_minimum_required(VERSION 2.8.11)
|
cmake_minimum_required(VERSION 2.8.11)
|
||||||
|
|
||||||
include(GNUInstallDirs)
|
include(GNUInstallDirs)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
set(EXTRA_C_FLAGS "")
|
set(EXTRA_C_FLAGS "")
|
||||||
set(EXTRA_C_FLAGS_RELEASE "-DNDEBUG")
|
set(EXTRA_C_FLAGS_RELEASE "-DNDEBUG")
|
||||||
set(EXTRA_C_FLAGS_DEBUG "-DDEBUG -O0")
|
set(EXTRA_C_FLAGS_DEBUG "-DDEBUG")
|
||||||
|
|
||||||
if (USE_CLANG)
|
if (USE_CLANG)
|
||||||
set (CMAKE_C_COMPILER_ID "Clang")
|
set (CMAKE_C_COMPILER_ID "Clang")
|
||||||
|
@ -104,6 +104,8 @@ if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU" OR
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(EXTRA_C_FLAGS "${EXTRA_C_FLAGS} -Wall -std=c++0x")
|
set(EXTRA_C_FLAGS "${EXTRA_C_FLAGS} -Wall -std=c++0x")
|
||||||
|
|
||||||
|
set(EXTRA_C_FLAGS_DEBUG "${EXTRA_C_FLAGS_DEBUG} -O0")
|
||||||
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue