diff --git a/Makefile b/Makefile index d82beea..e9ccfcd 100644 --- a/Makefile +++ b/Makefile @@ -10,6 +10,13 @@ OUT_DIR := $(MAKEFILE_DIR)/out SOURCES := $(wildcard $(SRC_DIR)/*.cpp) TARGETS := $(patsubst $(SRC_DIR)/%.cpp,$(OUT_DIR)/%,$(SOURCES)) +# Teste ob Compiler C++23 kann +CXX23_SUPPORTED := $(shell echo 'int main(){}' | $(CXX) -std=c++23 -x c++ -o /dev/null - 2>/dev/null && echo yes) + +ifeq ($(CXX23_SUPPORTED),) +$(error Your compiler does not support C++23. Please update your system!) +endif + all: $(OUT_DIR) $(TARGETS) $(OUT_DIR):