[Beignet] [PATCH 1/2] CMakeLists.txt enable custom C/CXXFLAGS

Zhigang Gong zhigang.gong at linux.intel.com
Tue May 7 23:00:20 PDT 2013


LGTM. Pushed, thanks for the patch.

On Tue, May 07, 2013 at 09:57:36PM +0200, Mario Kicherer wrote:
> 
> Signed-off-by: Mario Kicherer <dev at kicherer.org>
> ---
>  CMakeLists.txt | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> 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)
> -- 
> 1.8.1.5
> 
> _______________________________________________
> Beignet mailing list
> Beignet at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/beignet


More information about the Beignet mailing list