From b32fd7240413ef040c135caf9155d2b17ff098fb Mon Sep 17 00:00:00 2001 From: Christian Kern Date: Fri, 30 Oct 2015 13:25:12 +0100 Subject: [PATCH] Give the user the ability to _append_ compiler flags --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3f43e85..281a772 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -59,7 +59,9 @@ IF(NOT OpenCL_FOUND) MESSAGE( STATUS "OpenCL is not there, will build without MTAPI OpenCL Plugin." ) ENDIF() - +# give the user the possibility, to append compiler flags +set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${EXTRA_CMAKE_CXX_FLAGS}") +set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CMAKE_C_FLAGS}") if(NOT CMAKE_BUILD_TYPE) set(CMAKE_BUILD_TYPE "Release" CACHE STRING -- libgit2 0.26.0