Browse Source

use LANG_VERSION to switch from C++14 (default) to C++17, if necessary

master
roker 9 months ago
parent
commit
bd7a9b4e93
1 changed files with 8 additions and 1 deletions
  1. +8
    -1
      Makefile.conf

+ 8
- 1
Makefile.conf View File

@ -13,7 +13,7 @@ PREFIX?=$(HOME)
ENGINE_LIB_PATH=$(PREFIX)/lib
ENGINE_INC_PATH=$(PREFIX)/include
CXXFLAGS+=-std=c++14 -fPIC
CXXFLAGS+=-fPIC
# Build target
BUILD_FOR:=$(shell uname)
@ -34,6 +34,13 @@ else
CXXFLAGS+=-DNDEBUG=1 -O3
endif
ifdef $(LANG_VERSION)
CXXFLAGS+=-std=$(LANG_VERSION)
else
CXXFLAGS+=-std=c++14
endif
# Add -L Prefixes to LIB/INC paths,
# if not already explicitly set in local.conf
ifndef ENGINE_LIB


Loading…
Cancel
Save