4040
4141 # Static Debug
4242 - name : " Static Debug: Configure"
43- run : cmake -G Ninja -S . -B build-static-dbg -DCMAKE_BUILD_TYPE=Debug "-DCMAKE_DEBUG_POSTFIX=d${{matrix.static_postfix}}"
43+ run : cmake -G Ninja -S . -B build-static-dbg -DCMAKE_BUILD_TYPE=Debug "-DCMAKE_DEBUG_POSTFIX=d${{matrix.static_postfix}}" -DCMAKE_CXX_STANDARD=11 -DCMAKE_CXX_STANDARD_REQUIRED=ON
4444 - name : " Static Debug: Build"
4545 run : cmake --build build-static-dbg
4646 - name : " Static Debug: Test"
4949
5050 # Shared Debug
5151 - name : " Shared Debug: Configure"
52- run : cmake -G Ninja -S . -B build-shared-dbg -DCMAKE_BUILD_TYPE=Debug -DCMAKE_DEBUG_POSTFIX=d -DBUILD_SHARED_LIBS=ON
52+ run : cmake -G Ninja -S . -B build-shared-dbg -DCMAKE_BUILD_TYPE=Debug -DCMAKE_DEBUG_POSTFIX=d -DBUILD_SHARED_LIBS=ON -DCMAKE_CXX_STANDARD=11 -DCMAKE_CXX_STANDARD_REQUIRED=ON
5353 - name : " Shared Debug: Build"
5454 run : cmake --build build-shared-dbg
5555 - name : " Shared Debug: Test"
5858
5959 # Static Release
6060 - name : " Static Release: Configure"
61- run : cmake -G Ninja -S . -B build-static-rel -DCMAKE_BUILD_TYPE=Release "-DCMAKE_RELEASE_POSTFIX=${{matrix.static_postfix}}"
61+ run : cmake -G Ninja -S . -B build-static-rel -DCMAKE_BUILD_TYPE=Release "-DCMAKE_RELEASE_POSTFIX=${{matrix.static_postfix}}" -DCMAKE_CXX_STANDARD=11 -DCMAKE_CXX_STANDARD_REQUIRED=ON
6262 - name : " Static Release: Build"
6363 run : cmake --build build-static-rel
6464 - name : " Static Release: Test"
6767
6868 # Shared Release
6969 - name : " Shared Release: Configure"
70- run : cmake -G Ninja -S . -B build-shared-rel -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=ON
70+ run : cmake -G Ninja -S . -B build-shared-rel -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=ON -DCMAKE_CXX_STANDARD=11 -DCMAKE_CXX_STANDARD_REQUIRED=ON
7171 - name : " Shared Release: Build"
7272 run : cmake --build build-shared-rel
7373 - name : " Shared Release: Test"
@@ -89,23 +89,23 @@ jobs:
8989 run : >-
9090 ctest --build-and-test test test-static-dbg
9191 --build-generator Ninja
92- --build-options -DCMAKE_BUILD_TYPE=Debug -Dtinyxml2_SHARED_LIBS=NO -DCMAKE_PREFIX_PATH=${{github.workspace}}/install
92+ --build-options -DCMAKE_BUILD_TYPE=Debug -Dtinyxml2_SHARED_LIBS=NO -DCMAKE_PREFIX_PATH=${{github.workspace}}/install -DCMAKE_CXX_STANDARD=11 -DCMAKE_CXX_STANDARD_REQUIRED=ON
9393 --test-command ctest --output-on-failure
9494 - name : " Test find_package: Static Release"
9595 run : >-
9696 ctest --build-and-test test test-static-rel
9797 --build-generator Ninja
98- --build-options -DCMAKE_BUILD_TYPE=Release -Dtinyxml2_SHARED_LIBS=NO -DCMAKE_PREFIX_PATH=${{github.workspace}}/install
98+ --build-options -DCMAKE_BUILD_TYPE=Release -Dtinyxml2_SHARED_LIBS=NO -DCMAKE_PREFIX_PATH=${{github.workspace}}/install -DCMAKE_CXX_STANDARD=11 -DCMAKE_CXX_STANDARD_REQUIRED=ON
9999 --test-command ctest --output-on-failure
100100 - name : " Test find_package: Shared Debug"
101101 run : >-
102102 ctest --build-and-test test test-shared-dbg
103103 --build-generator Ninja
104- --build-options -DCMAKE_BUILD_TYPE=Debug -Dtinyxml2_SHARED_LIBS=YES -DCMAKE_PREFIX_PATH=${{github.workspace}}/install
104+ --build-options -DCMAKE_BUILD_TYPE=Debug -Dtinyxml2_SHARED_LIBS=YES -DCMAKE_PREFIX_PATH=${{github.workspace}}/install -DCMAKE_CXX_STANDARD=11 -DCMAKE_CXX_STANDARD_REQUIRED=ON
105105 --test-command ctest --output-on-failure
106106 - name : " Test find_package: Shared Release"
107107 run : >-
108108 ctest --build-and-test test test-shared-rel
109109 --build-generator Ninja
110- --build-options -DCMAKE_BUILD_TYPE=Release -Dtinyxml2_SHARED_LIBS=YES -DCMAKE_PREFIX_PATH=${{github.workspace}}/install
110+ --build-options -DCMAKE_BUILD_TYPE=Release -Dtinyxml2_SHARED_LIBS=YES -DCMAKE_PREFIX_PATH=${{github.workspace}}/install -DCMAKE_CXX_STANDARD=11 -DCMAKE_CXX_STANDARD_REQUIRED=ON
111111 --test-command ctest --output-on-failure
0 commit comments