diff options
author | Oscar Fuentes <ofv@wanadoo.es> | 2009-11-30 23:50:14 +0000 |
---|---|---|
committer | Oscar Fuentes <ofv@wanadoo.es> | 2009-11-30 23:50:14 +0000 |
commit | 2343b106371d7152d25beca5a5f8dc12349b41b3 (patch) | |
tree | a5ec27c22ef9ccfa851818a04cbd66ae302e81cf /CMakeLists.txt | |
parent | 03d34caed7b3cd742b7a93c403102180dc8d6168 (diff) |
* CMakeLists.txt: Adds warnings flags for g++. Fixes PR 5647.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90170 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 39ccfbb108..d609c84c0d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -226,6 +226,8 @@ if( MSVC ) add_llvm_definitions("/${LLVM_USE_CRT}") message(STATUS "Using VC++ CRT: ${LLVM_USE_CRT}") endif (NOT ${LLVM_USE_CRT} STREQUAL "") +elseif( CMAKE_COMPILER_IS_GNUCXX ) + add_llvm_definitions( -Wall -W -Wno-unused-parameter -Wwrite-strings ) endif( MSVC ) include_directories( ${LLVM_BINARY_DIR}/include ${LLVM_MAIN_INCLUDE_DIR}) |