Skip to content

Commit

Permalink
enforcing c++11
Browse files Browse the repository at this point in the history
  • Loading branch information
bam241 committed Feb 28, 2019
1 parent b0be1c6 commit 774593b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,12 +1,24 @@
# Defines the CMake commands/policies
cmake_minimum_required(VERSION 3.0.0)



# Make the scripts available in the 'cmake' directory available for the
# 'include()' command, 'find_package()' command.
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 774593b

Please sign in to comment.