Fix C++ flags

This commit is contained in:
Jeffrey Pfau 2014-10-25 03:06:57 -07:00
parent 2415d59d94
commit b51ec046da
1 changed files with 1 additions and 2 deletions

View File

@ -1,8 +1,7 @@
cmake_minimum_required(VERSION 2.8.8)
enable_language(CXX)
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -g -Wall -Wextra --std=c++11")
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O3 -Wall -Wextra --std=c++11")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} --std=c++11")
if(BUILD_SDL)
find_package(SDL 1.2 REQUIRED)