1
0
mirror of https://github.com/clementine-player/Clementine synced 2024-12-21 23:43:58 +01:00

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.
This commit is contained in:
Jim Broadus 2021-03-05 23:38:18 -08:00 committed by John Maguire
parent f92690c14d
commit 15474ada39

View File

@ -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})