Compile external WX with C++11 if Linux.

Fixes PR #1545.
This commit is contained in:
Rohit Nirmal 2014-11-17 22:58:29 +00:00
parent dced84d440
commit 6bd7b1a42a
1 changed files with 1 additions and 1 deletions

View File

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