diff options
author | bunnei <bunneidev@gmail.com> | 2016-08-08 16:52:05 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-08 16:52:05 +0200 |
commit | 3c3a6cb2afe37cdf06fb817a0e508c2fcfbef951 (patch) | |
tree | d634a074059cbe7385843c9f9ad176acff64460e | |
parent | Input GUI: Add tab to remap controls (#1900) (diff) | |
parent | CMake: Fix for QT 5.7 overwriting -std=c++1y flag (diff) | |
download | yuzu-3c3a6cb2afe37cdf06fb817a0e508c2fcfbef951.tar yuzu-3c3a6cb2afe37cdf06fb817a0e508c2fcfbef951.tar.gz yuzu-3c3a6cb2afe37cdf06fb817a0e508c2fcfbef951.tar.bz2 yuzu-3c3a6cb2afe37cdf06fb817a0e508c2fcfbef951.tar.lz yuzu-3c3a6cb2afe37cdf06fb817a0e508c2fcfbef951.tar.xz yuzu-3c3a6cb2afe37cdf06fb817a0e508c2fcfbef951.tar.zst yuzu-3c3a6cb2afe37cdf06fb817a0e508c2fcfbef951.zip |
-rwxr-xr-x | .travis-deps.sh | 4 | ||||
-rw-r--r-- | CMakeLists.txt | 10 |
2 files changed, 8 insertions, 6 deletions
diff --git a/.travis-deps.sh b/.travis-deps.sh index 10b69f5c4..aad9074bf 100755 --- a/.travis-deps.sh +++ b/.travis-deps.sh @@ -9,7 +9,7 @@ if [ "$TRAVIS_OS_NAME" = "linux" -o -z "$TRAVIS_OS_NAME" ]; then export CXX=g++-6 mkdir -p $HOME/.local - curl -L http://www.cmake.org/files/v3.1/cmake-3.1.0-Linux-i386.tar.gz \ + curl -L http://www.cmake.org/files/v3.2/cmake-3.2.0-Linux-i386.tar.gz \ | tar -xz -C $HOME/.local --strip-components=1 ( @@ -21,6 +21,6 @@ if [ "$TRAVIS_OS_NAME" = "linux" -o -z "$TRAVIS_OS_NAME" ]; then elif [ "$TRAVIS_OS_NAME" = "osx" ]; then brew update > /dev/null # silence the very verbose output brew unlink cmake - brew install cmake31 qt5 sdl2 dylibbundler + brew install cmake qt5 sdl2 dylibbundler gem install xcpretty fi diff --git a/CMakeLists.txt b/CMakeLists.txt index 779eb8e50..4a271c36f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,5 @@ -# CMake 3.1 required for Qt5 settings to be applied automatically on -# dependent libraries and IMPORTED targets. -cmake_minimum_required(VERSION 3.1) +# CMake 3.2 required for cmake to know the right flags for CXX standard on OSX +cmake_minimum_required(VERSION 3.2) function(download_bundled_external remote_path lib_name prefix_var) set(prefix "${CMAKE_BINARY_DIR}/externals/${lib_name}") @@ -63,8 +62,11 @@ if (NOT DEFINED ARCHITECTURE) endif() message(STATUS "Target architecture: ${ARCHITECTURE}") +set(CMAKE_CXX_STANDARD 14) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + if (NOT MSVC) - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++1y -Wno-attributes") + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-attributes") set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS}") else() # Silence "deprecation" warnings |