Skip to content
Permalink
Browse files

Fix problems with USE_CXX11

  • Loading branch information
sfan5 committed Dec 20, 2014
1 parent 1c47825 commit 20b340e2ee2ec2a6b1b831090ff2c0ea7cd75a34
Showing with 6 additions and 4 deletions.
  1. +6 −4 CMakeLists.txt
@@ -14,13 +14,15 @@ endif()

option(USE_CXX11 "Use C++11" FALSE)
if(USE_CXX11)
set(CMAKE_CXX_FLAGS_RELEASE "-O3 -std=c++11 -Wall -DNDEBUG")
set(CMAKE_CXX_FLAGS_DEBUG "-O0 -g2 -std=c++11 -Wall -Wextra")
set(CMAKE_CXX_FLAGS "-std=c++11")
set(USE_CXX11 1) # We use this in config.h, it needs to be a valid value
else(USE_CXX11)
set(CMAKE_CXX_FLAGS_RELEASE "-O3 -Wall -DNDEBUG")
set(CMAKE_CXX_FLAGS_DEBUG "-O0 -g2 -Wall -Wextra")
set(USE_CXX11 0)
endif(USE_CXX11)

set(CMAKE_CXX_FLAGS_RELEASE "-O3 -Wall")
set(CMAKE_CXX_FLAGS_DEBUG "-O0 -g2 -Wall")

# Find libgd
find_library(LIBGD_LIBRARY gd)
find_path(LIBGD_INCLUDE_DIR gd.h)

0 comments on commit 20b340e

Please sign in to comment.