Skip to content
Permalink
Browse files

Remove vestigial -ansi flag

This causes the compiler to not operate in C++11 mode, meaning that
headers such as <type_traits> issue errors.
  • Loading branch information...
steveire committed Jul 21, 2019
1 parent 457b280 commit c989fcf192d01d26866faf6405a28ba4fdce64c3
Showing with 1 addition and 1 deletion.
  1. +1 −1 CMakeLists.txt
@@ -59,7 +59,7 @@ endif()

if (CMAKE_COMPILER_IS_GNUCXX)
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-long-long -std=iso9899:1990 -Wundef -Wcast-align -Werror-implicit-function-declaration -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -Wformat-security -Wmissing-format-attribute -fno-common")
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wnon-virtual-dtor -Wno-long-long -ansi -Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wformat-security -fno-check-new -fno-common ")
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wnon-virtual-dtor -Wno-long-long -Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wformat-security -fno-check-new -fno-common ")

if (CMAKE_BUILD_TYPE MATCHES TestCocoon)
# Needed on 64 bit

0 comments on commit c989fcf

Please sign in to comment.
You can’t perform that action at this time.