Index: CMakeLists.txt =================================================================== --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -24,17 +24,17 @@ pkg_check_modules(SND sndfile REQUIRED) include_directories( ${SND_INCLUDE_DIRS} ) #target_link_libraries( avtkDemo ${CAIRO_LIBRARIES} ) -SET(CMAKE_SHARED_LINKER_FLAGS "-fPIC -shared -L./src/avtk -Wl,--no-undefined") -SET(CMAKE_C_FLAGS "-g -Wall -O1 -Wno-unused-variable") -SET(CMAKE_CXX_FLAGS "-g -Wall -O1 -Wno-unused-variable -ftree-vectorize") +SET(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -fPIC -shared -L./src/avtk -Wl,--no-undefined") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wno-unused-variable") +SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wno-unused-variable -ftree-vectorize") # DSP sources FILE(GLOB sources src/dsp/*.cxx src/dsp/rr/*.cxx src/dsp/eq/*.cc ) IF(BUILD_SSE) - SET(CMAKE_C_FLAGS "-msse2 -mfpmath=sse") - SET(CMAKE_CXX_FLAGS "-msse2 -mfpmath=sse") + SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -msse2 -mfpmath=sse") + SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -msse2 -mfpmath=sse") ENDIF() IF(BUILD_GUI)