CMAKE: Do not override system C/C++ compiler flags when no build type is defined. This will make things easiers for packaging.

This commit is contained in:
bgk 2011-02-26 12:11:06 +00:00
parent a8c1e753b1
commit 4a9bf47455
1 changed files with 5 additions and 2 deletions

View File

@ -113,8 +113,11 @@ IF ( WIN32 )
ELSE ( WIN32 )
SET( CMAKE_ASM_NASM_FLAGS "-I$(CMAKE_SOURCE_DIR)/src/filters/hq/asm/ -O1 -DELF -w-orphan-labels")
ENDIF ( WIN32 )
SET( CMAKE_C_FLAGS "-O3 -Wall")
SET( CMAKE_CXX_FLAGS "-O3 -Wall")
SET( CMAKE_C_FLAGS_RELEASE "-O3")
SET( CMAKE_CXX_FLAGS_RELEASE "-O3")
SET( CMAKE_C_FLAGS_DEBUG "-g -Wall")
SET( CMAKE_CXX_FLAGS_DEBUG "-g -Wall")
# Source files definition
SET(SRC_FEX