[llvm-commits] [llvm] r90170 - /llvm/trunk/CMakeLists.txt
Oscar Fuentes
ofv at wanadoo.es
Mon Nov 30 15:50:15 PST 2009
Author: ofv
Date: Mon Nov 30 17:50:14 2009
New Revision: 90170
URL: http://llvm.org/viewvc/llvm-project?rev=90170&view=rev
Log:
* CMakeLists.txt: Adds warnings flags for g++. Fixes PR 5647.
Modified:
llvm/trunk/CMakeLists.txt
Modified: llvm/trunk/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/CMakeLists.txt?rev=90170&r1=90169&r2=90170&view=diff
==============================================================================
--- llvm/trunk/CMakeLists.txt (original)
+++ llvm/trunk/CMakeLists.txt Mon Nov 30 17:50:14 2009
@@ -226,6 +226,8 @@
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})
More information about the llvm-commits
mailing list