Skip to content

Commit

Permalink
fix compiler option
Browse files Browse the repository at this point in the history
  • Loading branch information
Yusuke Oda committed Apr 6, 2017
1 parent 0cfec83 commit 187b037
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
cmake_minimum_required(VERSION 3.1.0 FATAL_ERROR)
project(mteval)

set(BUILD_SHARED_LIBS ON)

# Compiler options
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

set(BUILD_SHARED_LIBS ON)
if(CMAKE_COMPILER_IS_GNUCXX)
set(CMAKE_CXX_FLAGS "-O2 -Wall -Werror")
endif()

# Boost configurations
if(DEFINED BOOST_ROOT OR DEFINED BOOSTROOT OR DEFINED ENV{BOOST_ROOT} OR DEFINED ENV{BOOSTROOT})
Expand Down

0 comments on commit 187b037

Please sign in to comment.