Merge pull request #1569 from rohit-n/fix-1545

Compile external WX with C++11 if Linux.
This commit is contained in:
Lioncash 2014-11-19 16:36:48 -05:00
commit 567e52b3de
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}