CMake build: enabme c++11 for mingw.

pull/859/head
Kim Kulling 2016-04-21 00:02:28 +02:00
parent 2f9c33e3e9
commit 019226c119
1 changed files with 2 additions and 0 deletions

View File

@ -76,6 +76,8 @@ elseif(MSVC)
add_compile_options(/MP)
elseif ( "${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang" )
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fvisibility=hidden -Wall -Wno-long-long -pedantic -std=c++11" )
ELSEIF( CMAKE_COMPILER_IS_MINGW )
SET( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fvisibility=hidden -Wall -Wno-long-long -pedantic -std=c++11" )
endif()
INCLUDE (FindPkgConfig)