CMake Flags C++11 extensions support

- C++11 extensions support
- .gitignore
This commit is contained in:
Jupiter 2017-09-11 23:11:33 +03:00
parent f44ae7933a
commit 0e2e63b896
2 changed files with 59 additions and 1 deletions

58
.gitignore vendored Normal file
View file

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

View file

@ -52,7 +52,7 @@ if( MSVC )
endif( MSVC ) endif( MSVC )
if( CMAKE_COMPILER_IS_GNUCXX ) 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 ) if( GPROF )
set( ALL_C_FLAGS "${ALL_C_FLAGS} -pg -g" ) set( ALL_C_FLAGS "${ALL_C_FLAGS} -pg -g" )
else( GPROF ) else( GPROF )