From: Mario Kicherer Date: Tue, 7 May 2013 19:57:36 +0000 (+0200) Subject: CMakeLists.txt enable custom C/CXXFLAGS X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a4a762d257e8acc91454e2d38c556c85d8a8a0e3;p=contrib%2Fbeignet.git CMakeLists.txt enable custom C/CXXFLAGS Signed-off-by: Mario Kicherer Reviewed-by: Zhigang Gong --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 4b402ee..6d0d291 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -55,8 +55,8 @@ ELSE (USE_FULSIM) ADD_DEFINITIONS(-DUSE_FULSIM=0) ENDIF (USE_FULSIM) -SET(CMAKE_CXX_FLAGS "-Wall -Wno-invalid-offsetof -mfpmath=sse -fno-rtti -Wcast-align -std=c++0x -msse2 -msse3 -mssse3 -msse4.1 ") -SET(CMAKE_C_FLAGS "-Wall -mfpmath=sse -msse2 -Wcast-align -msse2 -msse3 -mssse3 -msse4.1") +SET(CMAKE_CXX_FLAGS "-Wall -Wno-invalid-offsetof -mfpmath=sse -fno-rtti -Wcast-align -std=c++0x -msse2 -msse3 -mssse3 -msse4.1 ${CMAKE_CXX_FLAGS}") +SET(CMAKE_C_FLAGS "-Wall -mfpmath=sse -msse2 -Wcast-align -msse2 -msse3 -mssse3 -msse4.1 ${CMAKE_C_FLAGS}") # Front end stuff we need #INCLUDE(CMake/FindLLVM.cmake)