From 019226c1190f625dd33f0b5bec24928b1b222cff Mon Sep 17 00:00:00 2001 From: Kim Kulling Date: Thu, 21 Apr 2016 00:02:28 +0200 Subject: [PATCH] CMake build: enabme c++11 for mingw. --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index b7d73db4b..c9f2808ac 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)