Skip to content

Commit

Permalink
Due to issue appliedAI-Initiative#5 add the c++11 compiler option again
Browse files Browse the repository at this point in the history
This reverts commit 3c6c96e.
  • Loading branch information
lennarthaller committed Feb 15, 2019
1 parent 5037117 commit 963e964
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ ENDIF()
# Check for c++11 support
INCLUDE(CheckCXXCompilerFlag)
CHECK_CXX_COMPILER_FLAG("-std=c++11" COMPILER_SUPPORTS_CXX11)
IF(!COMPILER_SUPPORTS_CXX11)
IF(COMPILER_SUPPORTS_CXX11)
add_compile_options(-std=c++11)
ELSE()
MESSAGE(ERROR "The compiler ${CMAKE_CXX_COMPILER} has no C++11 support. Please use a different C++ compiler.")
ENDIF()

Expand Down

0 comments on commit 963e964

Please sign in to comment.