1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-24 17:10:36 +00:00

Only apply -std=c++11 to C++ flags

CPPFLAGS are applied to both .cpp and .c files, and that breaks clang build:

error: invalid argument '-std=c++11' not allowed with 'C/ObjC'
This commit is contained in:
Dmitry Marakasov 2017-10-31 18:18:06 +03:00 committed by GitHub
parent c611131f5a
commit a2de831122
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,7 +7,7 @@ hyperrogue_SOURCES = hyper.cpp savepng.c
# Some definitions used in graph.cpp
hyperrogue_CPPFLAGS = -DFONTDESTDIR=\"$(pkgdatadir)/DejaVuSans-Bold.ttf\" -DMUSICDESTDIR=\"$(pkgdatadir)/hyperrogue-music.txt\" -DSOUNDDESTDIR=\"$(pkgdatadir)/sounds/\"
hyperrogue_CPPFLAGS += -std=c++11
hyperrogue_CXXFLAGS = -std=c++11
# Musicdir
musicdir=$(datadir)/hyperrogue/music