From 15474ada398609164ab3ee6a769ef00556681134 Mon Sep 17 00:00:00 2001 From: Jim Broadus Date: Fri, 5 Mar 2021 23:38:18 -0800 Subject: [PATCH] build: Don't reset cflags in moodbar cmake Append CMAKE_CXX_FLAGS and CMAKE_C_FLAGS instead of setting. Setting the variables causes breakage in cross-compiled systems where sysroots and machine types are set. --- gst/moodbar/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gst/moodbar/CMakeLists.txt b/gst/moodbar/CMakeLists.txt index 7713046e1..28f8fbead 100644 --- a/gst/moodbar/CMakeLists.txt +++ b/gst/moodbar/CMakeLists.txt @@ -1,7 +1,7 @@ cmake_minimum_required(VERSION 2.8.11) -set(CMAKE_C_FLAGS "-Wall") -set(CMAKE_CXX_FLAGS "-Woverloaded-virtual -Wall --std=c++0x") +set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall") +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Woverloaded-virtual -Wall --std=c++0x") include_directories(${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR})