Skip to content

Commit

Permalink
Switch back to support also CMake 3.5
Browse files Browse the repository at this point in the history
  • Loading branch information
Stanislav Angelovic committed Apr 25, 2019
1 parent 4ede37d commit 882262b
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
# PROJECT INFORMATION
#-------------------------------

cmake_minimum_required(VERSION 3.7)
cmake_minimum_required(VERSION 3.5)

project(sdbus-c++ VERSION 0.5.2 LANGUAGES C CXX)
project(sdbus-c++ VERSION 0.6.1 LANGUAGES C CXX)

include(GNUInstallDirs) # Installation directories for `install` command and pkgconfig file

Expand Down Expand Up @@ -69,7 +69,11 @@ set(SDBUSCPP_SRCS ${SDBUSCPP_CPP_SRCS} ${SDBUSCPP_HDR_SRCS} ${SDBUSCPP_PUBLIC_HD
# GENERAL COMPILER CONFIGURATION
#-------------------------------

#set(CMAKE_CXX_STANDARD 17)
if(${CMAKE_VERSION} VERSION_LESS "3.8.0")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17")
else()
set(CMAKE_CXX_STANDARD 17) # Supported in CMake>=3.8
endif()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17")
include_directories("${CMAKE_SOURCE_DIR}/include")
include_directories("${CMAKE_SOURCE_DIR}/src")
Expand Down

0 comments on commit 882262b

Please sign in to comment.