Skip to content

Commit

Permalink
Merge pull request pyne#1106 from bam241/cpp11
Browse files Browse the repository at this point in the history
It is about time !
  • Loading branch information
gonuke authored Mar 20, 2019
2 parents 120dea3 + 99a7400 commit 20ef8c0
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,16 @@ list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake")

# Setup the project
project(pyne)

# check for and enable c++11 support
INCLUDE(CheckCXXCompilerFlag)
CHECK_CXX_COMPILER_FLAG("-std=c++11" COMPILER_SUPPORTS_CXX11)
IF(COMPILER_SUPPORTS_CXX11)
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
ELSE()
MESSAGE(STATUS "The compiler ${CMAKE_CXX_COMPILER} has no C++11 support. Please use a different C++ compiler.")
ENDIF()

include(PyneMacros)
pyne_print_logo() # Beware of dragons
pyne_set_platform()
Expand Down

0 comments on commit 20ef8c0

Please sign in to comment.