Skip to content

Commit

Permalink
Merge pull request #2216 from jwillemsen/jwi-cxxversionchecks
Browse files Browse the repository at this point in the history
Check for full match with major version
  • Loading branch information
jwillemsen committed Apr 15, 2024
2 parents c247ac5 + b0e4f06 commit 198cf53
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ACE/include/makeinclude/platform_g++_common.GNU
Original file line number Diff line number Diff line change
Expand Up @@ -75,16 +75,16 @@ endif
CXX_FULL_VERSION := $(shell $(CXX_FOR_VERSION_TEST) --version)

# Minimum C++ level is now C++17, gcc until version 11 have an older version as default
ifeq ($(findstring $(CXX_MAJOR_VERSION),7),$(CXX_MAJOR_VERSION))
ifeq ($(CXX_MAJOR_VERSION),7)
c++std ?= c++17
endif
ifeq ($(findstring $(CXX_MAJOR_VERSION),8),$(CXX_MAJOR_VERSION))
ifeq ($(CXX_MAJOR_VERSION),8)
c++std ?= c++17
endif
ifeq ($(findstring $(CXX_MAJOR_VERSION),9),$(CXX_MAJOR_VERSION))
ifeq ($(CXX_MAJOR_VERSION),9)
c++std ?= c++17
endif
ifeq ($(findstring $(CXX_MAJOR_VERSION),10),$(CXX_MAJOR_VERSION))
ifeq ($(CXX_MAJOR_VERSION),10)
c++std ?= c++17
endif

Expand Down

0 comments on commit 198cf53

Please sign in to comment.