From 6bd7b1a42a7edb215176974f20e2d39970216f50 Mon Sep 17 00:00:00 2001 From: Rohit Nirmal Date: Mon, 17 Nov 2014 22:58:29 +0000 Subject: [PATCH] Compile external WX with C++11 if Linux. Fixes PR #1545. --- Externals/wxWidgets3/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Externals/wxWidgets3/CMakeLists.txt b/Externals/wxWidgets3/CMakeLists.txt index 5feae66d94..68e35ae54a 100644 --- a/Externals/wxWidgets3/CMakeLists.txt +++ b/Externals/wxWidgets3/CMakeLists.txt @@ -883,6 +883,7 @@ if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin") ${OPENGL_LIBRARY} ${QUICKTIME_LIBRARY}) elseif(${CMAKE_SYSTEM_NAME} MATCHES "Linux") + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++11") add_definitions(-D__WXGTK__) set(SRCS ${SRCS} @@ -896,7 +897,6 @@ elseif(${CMAKE_SYSTEM_NAME} MATCHES "Linux") ${PANGOCAIRO_LIBRARIES} ${GTK2_LIBRARIES}) else() - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++11") add_definitions(-D__WXMSW__) set(SRCS ${SRCS}