Skip to content

Commit

Permalink
Merge 72ae363 into 9c51e4b
Browse files Browse the repository at this point in the history
  • Loading branch information
srz-zumix committed Dec 27, 2019
2 parents 9c51e4b + 72ae363 commit a5d479e
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 9 deletions.
13 changes: 7 additions & 6 deletions .travis.yml
@@ -1,4 +1,4 @@
dist: xenial
dist: bionic

language: cpp

Expand All @@ -18,14 +18,15 @@ branches:
addons:
apt: &apt-global
sources: &apt-common-sources
- ubuntu-toolchain-r-test
- llvm-toolchain-xenial-8
- llvm-toolchain-xenial
- sourceline: 'ppa:ubuntu-toolchain-r/test'
- sourceline: 'deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-8 main'
- sourceline: 'deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic main'
packages: &apt-common-packages
- clang-8
- g++-9
- gcc-9
- gdb
- cmake
#- cppcheck
config:
retries: true
Expand Down Expand Up @@ -59,8 +60,8 @@ before_install:
if [ "${CXX}" = 'clang++' ] && [ "${TRAVIS_OS_NAME}" != 'osx' ] && [ "${USE_COVERAGE}" = '' ]; then
export CC=clang-8
export CXX=clang++-8
#update-alternatives --install /usr/bin/clang clang /usr/bin/clang-7 90
#update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-7 90
#update-alternatives --install /usr/bin/clang clang /usr/bin/clang-8 90
#update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-8 90
fi
install:
Expand Down
3 changes: 2 additions & 1 deletion projects/cmake/CMakeLists.txt
Expand Up @@ -3,7 +3,7 @@
#

# CMake バージョン
cmake_minimum_required(VERSION 3.0.2)
cmake_minimum_required(VERSION 3.14.7)

# option
option(build_gtest_samples "gtest sample build." OFF)
Expand All @@ -24,6 +24,7 @@ endif()

# プロジェクト名
project(iutest CXX C)
set(CMAKE_CXX_STANDARD 17)

set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE NEVER)
set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE NEVER)
Expand Down
2 changes: 1 addition & 1 deletion projects/cmake/exsample.bat → projects/cmake/example.bat
@@ -1,6 +1,6 @@
@echo off

SET VCVERSION=15
SET VCVERSION=16
SET DIRNAME=vc%VCVERSION%

pushd .
Expand Down
2 changes: 1 addition & 1 deletion projects/cmake/internal_utils.cmake
Expand Up @@ -5,7 +5,7 @@
macro(fix_default_compiler_settings_)
if (MSVC)
if(NOT (MSVC_VERSION LESS 1910))
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /std:c++17 /permissive-")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /permissive-")
endif()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /WX")
if (MSVC_VERSION LESS 1900)
Expand Down

0 comments on commit a5d479e

Please sign in to comment.