Skip to content

Commit

Permalink
Check for full match with major version
Browse files Browse the repository at this point in the history
    * ACE/include/makeinclude/platform_g++_common.GNU:
  • Loading branch information
jwillemsen committed Apr 11, 2024
1 parent e2056c2 commit b0e4f06
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 b0e4f06

Please sign in to comment.