1
0
mirror of https://github.com/c64scene-ar/llvm-6502.git synced 2025-04-13 15:37:24 +00:00

* 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
This commit is contained in:
Oscar Fuentes 2009-11-30 23:50:14 +00:00
parent 03d34caed7
commit 2343b10637

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