From 40f01b418f2215580350406e9f177df660bda812 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Tue, 24 Sep 2019 11:57:40 +0300 Subject: [PATCH] - explicit use of C++11 standard for TiMidity++ This fixes compilation with older GCC and Clang --- libraries/timidityplus/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/libraries/timidityplus/CMakeLists.txt b/libraries/timidityplus/CMakeLists.txt index ae310e320..6bdaa2840 100644 --- a/libraries/timidityplus/CMakeLists.txt +++ b/libraries/timidityplus/CMakeLists.txt @@ -4,6 +4,7 @@ make_release_only() if( ZD_CMAKE_COMPILER_IS_GNUC_COMPATIBLE ) set( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -Wno-unused-parameter -fomit-frame-pointer" ) + set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11" ) endif() set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${ZD_FASTMATH_FLAG}")