mirror of
https://github.com/libSDL2pp/libSDL2pp.git
synced 2025-08-04 03:15:59 -04:00
Use more appropriate variable name for c++ standard
This commit is contained in:
parent
92b225c928
commit
ee5805e773
@ -3,8 +3,8 @@ compiler:
|
||||
- gcc
|
||||
- clang
|
||||
env:
|
||||
- SDL2PP_CSTD=c++11
|
||||
- SDL2PP_CSTD=c++1y
|
||||
- SDL2PP_CXXSTD=c++11
|
||||
- SDL2PP_CXXSTD=c++1y
|
||||
before_install:
|
||||
- sudo add-apt-repository --yes ppa:zoogie/sdl2-snapshots
|
||||
- sudo add-apt-repository --yes ppa:ubuntu-toolchain-r/test
|
||||
@ -12,7 +12,7 @@ before_install:
|
||||
- sudo apt-get install -qq cmake libsdl2-dev libsdl2-image-dev g++-4.8 cppcheck
|
||||
- if [ "$CXX" = "g++" ]; then export CXX="g++-4.8" CC="gcc-4.8"; fi
|
||||
script:
|
||||
- cmake . -DSDL2PP_ENABLE_GUI_TEST=OFF -DCMAKE_INSTALL_PREFIX=`pwd`/_prefix -DSDL2PP_WITH_WERROR=YES -DSDL2PP_CSTD=$SDL2PP_CSTD
|
||||
- cmake . -DSDL2PP_ENABLE_GUI_TEST=OFF -DCMAKE_INSTALL_PREFIX=`pwd`/_prefix -DSDL2PP_WITH_WERROR=YES -DSDL2PP_CXXSTD=$SDL2PP_CXXSTD
|
||||
- make
|
||||
- make test
|
||||
- make install
|
||||
|
@ -16,7 +16,7 @@ SET(SDL2PP_VERSION "${SDL2PP_MAJOR_VERSION}.${SDL2PP_MINOR_VERSION}.${SDL2PP_PAT
|
||||
OPTION(SDL2PP_WITH_2_0_4 "Enable new functions available only in SDL2 2.0.4+" OFF)
|
||||
OPTION(SDL2PP_WITH_WERROR "Make warnings fatal" OFF)
|
||||
|
||||
SET(SDL2PP_CSTD "c++11" CACHE STRING "Used c++ standard")
|
||||
SET(SDL2PP_CXXSTD "c++11" CACHE STRING "Used c++ standard")
|
||||
|
||||
IF(CMAKE_SOURCE_DIR STREQUAL PROJECT_SOURCE_DIR)
|
||||
OPTION(SDL2PP_WITH_IMAGE "Enable SDL2_image support" ON)
|
||||
@ -41,7 +41,7 @@ IF(MSVC)
|
||||
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /W3")
|
||||
SET(WERROR_FLAG "/WX")
|
||||
ELSE(MSVC)
|
||||
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=${SDL2PP_CSTD} -Wall -Wextra -pedantic")
|
||||
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=${SDL2PP_CXXSTD} -Wall -Wextra -pedantic")
|
||||
SET(WERROR_FLAG "-Werror")
|
||||
ENDIF(MSVC)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user