Remove /std:c++11 flag

MSVC doesn't actually support this

Also actually indent the "if" block

Ref #1301, dfhack/df-structures#247
develop
lethosor 2018-06-14 13:46:21 -04:00
parent 93a197b3d4
commit d35b6d468c
1 changed files with 16 additions and 20 deletions

@ -56,10 +56,6 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF) set(CMAKE_CXX_EXTENSIONS OFF)
if(MSVC) if(MSVC)
# cmake 3.10 is first version that support msvc standard settings
if(${CMAKE_VERSION} VERSION_LESS "3.10.0")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /std:c++11")
endif()
# disable C4819 code-page warning # disable C4819 code-page warning
add_definitions( "/wd4819" ) add_definitions( "/wd4819" )