From 98f67600a86803f2e28c9742f88d54c23ea71cc7 Mon Sep 17 00:00:00 2001 From: Hans Erik van Elburg Date: Sun, 4 Jan 2015 13:57:31 +0100 Subject: merge double fix + make changes minimalistic --- src/CMakeLists.txt | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) (limited to 'src/CMakeLists.txt') diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index dcafeba2..7b10061f 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -167,12 +167,10 @@ if (CMAKE_BUILD_TYPE STREQUAL "Debug") if (BUILD_LIBRARY) list(APPEND _args ${CMAKE_SHARED_LIBRARY_CXX_FLAGS}) endif() - if (CYGWIN) - list(APPEND _args "-std=c++11 ") - list(APPEND _args "-U__STRICT_ANSI__") - else() - list(APPEND _args "-std=c++11 ") - endif() + list(APPEND _args "-std=c++11 ") + if (CYGWIN) + list(APPEND _args "-U__STRICT_ANSI__") + endif() list(APPEND _args "-x c++-header " ${_inc}) list(APPEND _args -c ${_header_filename} -o ${_pch_filename}) @@ -228,12 +226,10 @@ if (CMAKE_BUILD_TYPE STREQUAL "Debug") list(APPEND _args ${CMAKE_SHARED_LIBRARY_CXX_FLAGS}) endif() list(APPEND _args ${GXX_WARNING_FLAGS}) - if (CYGWIN) - list(APPEND _args "-std=c++11 ") - list(APPEND _args "-U__STRICT_ANSI__") - else() - list(APPEND _args "-std=c++11 ") - endif() + list(APPEND _args "-std=c++11 ") + if (CYGWIN) + list(APPEND _args "-U__STRICT_ANSI__") + endif() list(APPEND _args "-x c++-header " ${_inc}) list(APPEND _args -c ${_header_filename} -o ${_gch_filename}) -- cgit v1.2.3