Merge pull request #276 from carlosmn/development

Bring back GCC flags
This commit is contained in:
Vicent Martí 2011-06-26 08:33:11 -07:00
commit 0b10c9ea6e

View File

@ -40,6 +40,10 @@ IF (MSVC)
# TODO: bring back /RTC1 /RTCc # TODO: bring back /RTC1 /RTCc
SET(CMAKE_C_FLAGS_DEBUG "/Od /DEBUG /MTd") SET(CMAKE_C_FLAGS_DEBUG "/Od /DEBUG /MTd")
SET(CMAKE_C_FLAGS_RELEASE "/MT /O2") SET(CMAKE_C_FLAGS_RELEASE "/MT /O2")
ELSE ()
SET(CMAKE_C_FLAGS "-Wall -Wextra -fPIC")
SET(CMAKE_C_FLAGS_DEBUG "-g -O0")
SET(CMAKE_C_FLAGS_RELEASE "-O2")
ENDIF() ENDIF()
# Build Debug by default # Build Debug by default