Skip to content

Commit 9a7dfef

Browse files
committed
Change /std:c++latest flag to /std:c++17 and quote it, since CMake otherwise doesn't seem to pick it up
1 parent 8b9eb96 commit 9a7dfef

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.appveyor.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,16 @@ environment:
1818
CPP: 14
1919
CONFIG: Debug
2020
- CONDA: 36
21-
CPP: latest
21+
CPP: 17
2222
CONFIG: Release
2323
matrix:
2424
exclude:
2525
- image: Visual Studio 2015
2626
platform: x86
2727
- image: Visual Studio 2015
28-
CPP: latest
28+
CPP: 17
2929
- image: Visual Studio 2017
30-
CPP: latest
30+
CPP: 17
3131
platform: x86
3232
install:
3333
- ps: |
@@ -58,13 +58,13 @@ install:
5858
$env:CMAKE_INCLUDE_PATH = "eigen-eigen-67e894c6cd8f;$env:CMAKE_INCLUDE_PATH"
5959
build_script:
6060
- cmake -G "%CMAKE_GENERATOR%" -A "%CMAKE_ARCH%"
61-
-DPYBIND11_CPP_STANDARD=/std:c++%CPP%
61+
-DPYBIND11_CPP_STANDARD="/std:c++%CPP%"
6262
-DPYBIND11_WERROR=ON
6363
-DDOWNLOAD_CATCH=ON
6464
-DCMAKE_SUPPRESS_REGENERATION=1
6565
.
6666
- set MSBuildLogger="C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
6767
- cmake --build . --config %CONFIG% --target pytest -- /m /v:m /logger:%MSBuildLogger%
6868
- cmake --build . --config %CONFIG% --target cpptest -- /m /v:m /logger:%MSBuildLogger%
69-
- if "%CPP%"=="latest" (cmake --build . --config %CONFIG% --target test_cmake_build -- /m /v:m /logger:%MSBuildLogger%)
69+
- if "%CPP%"=="17" (cmake --build . --config %CONFIG% --target test_cmake_build -- /m /v:m /logger:%MSBuildLogger%)
7070
on_failure: if exist "tests\test_cmake_build" type tests\test_cmake_build\*.log*

0 commit comments

Comments
 (0)