Skip to content

Commit

Permalink
Fix the C++11 compiler warning
Browse files Browse the repository at this point in the history
  • Loading branch information
lennarthaller committed Feb 9, 2019
1 parent cfb82f6 commit 3c6c96e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@ ENDIF()
# Check for c++11 support
INCLUDE(CheckCXXCompilerFlag)
CHECK_CXX_COMPILER_FLAG("-std=c++11" COMPILER_SUPPORTS_CXX11)
IF(COMPILER_SUPPORTS_CXX11)
add_compile_options(-std=c++11)
ELSE()
IF(!COMPILER_SUPPORTS_CXX11)
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 3c6c96e

Please sign in to comment.