Skip to content

Commit

Permalink
Allow the build environment to override CMAKE_CXX_STANDARD
Browse files Browse the repository at this point in the history
  • Loading branch information
LiruMouse authored and alanxz committed Jan 16, 2025
1 parent 500b070 commit d271adb
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 @@ -7,7 +7,9 @@ cmake_minimum_required(VERSION 3.5)

project(SimpleAmqpClient LANGUAGES CXX)

set(CMAKE_CXX_STANDARD 98)
if(NOT DEFINED CMAKE_CXX_STANDARD)
set(CMAKE_CXX_STANDARD 98)
endif()
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)

Expand Down

0 comments on commit d271adb

Please sign in to comment.