From 0e2e63b896fbfe11347da4a50aa67344584dea57 Mon Sep 17 00:00:00 2001 From: Jupiter Date: Mon, 11 Sep 2017 23:11:33 +0300 Subject: [PATCH] CMake Flags C++11 extensions support - C++11 extensions support - .gitignore --- .gitignore | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++ CMakeLists.txt | 2 +- 2 files changed, 59 insertions(+), 1 deletion(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..273a555 --- /dev/null +++ b/.gitignore @@ -0,0 +1,58 @@ +# cmake +CMakeCache.txt +CMakeFiles +CMakeTools +CMakeScripts +Testing +Makefile +cmake_install.cmake +install_manifest.txt +compile_commands.json +CTestTestfile.cmake +wadext +wadext.exe + +# c +# Prerequisites +*.d + +# Object files +*.o +*.ko +*.obj +*.elf + +# Linker output +*.ilk +*.map +*.exp + +# Precompiled Headers +*.gch +*.pch + +# Libraries +*.lib +*.a +*.la +*.lo + +# Shared objects +*.dll +*.so +*.so.* +*.dylib + +# Executables +*.exe +*.out +*.app +*.i*86 +*.x86_64 +*.hex + +# Debug files +*.dSYM/ +*.su +*.idb +*.pdb diff --git a/CMakeLists.txt b/CMakeLists.txt index 0446b1f..1aaabfa 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -52,7 +52,7 @@ if( MSVC ) endif( MSVC ) if( CMAKE_COMPILER_IS_GNUCXX ) - set( ALL_C_FLAGS "${ALL_C_FLAGS} -ffast-math -pipe" ) + set( ALL_C_FLAGS "${ALL_C_FLAGS} -Wc++11-extensions -ffast-math -pipe" ) if( GPROF ) set( ALL_C_FLAGS "${ALL_C_FLAGS} -pg -g" ) else( GPROF )