Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Copyright 2013-2017, Corvusoft Ltd, All Rights Reserved.
cmake_minimum_required( VERSION 2.8.10 )
cmake_minimum_required (VERSION 3.5)

project( restbed CXX )
set( restbed_VERSION_MAJOR 4 )
Expand Down
6 changes: 6 additions & 0 deletions cmake/configuration.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@ elseif( ${CMAKE_CXX_COMPILER_ID} STREQUAL Clang )
else ( )
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}" )
endif ( )
elseif( ${CMAKE_CXX_COMPILER_ID} STREQUAL AppleClang )
if ( ${CMAKE_CXX_COMPILER_VERSION} VERSION_LESS 3.3 )
message( FATAL_ERROR "\nAppleClang version < 3.3\nYour systems default compiler is AppleClang. This project makes use of c++11 features present only in versions of clang >= 3.3. You can use a different compiler by re-running cmake with the command switch \"-D CMAKE_CXX_COMPILER=<compiler>\" " )
else ( )
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}" )
endif ( )
elseif( ${CMAKE_CXX_COMPILER_ID} STREQUAL MSVC )
if ( ${CMAKE_CXX_COMPILER_VERSION} VERSION_LESS 19.00.23026.0 )
message( WARNING "\nMSVC compiler version < 19.00.23026.0" )
Expand Down