File tree Expand file tree Collapse file tree 5 files changed +6
-4
lines changed
tests/installation_tests/find Expand file tree Collapse file tree 5 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 13
13
run : |
14
14
mkdir build &&
15
15
cd build &&
16
- cmake -DCMAKE_CXX_STANDARD =20 -DFASTFLOAT_TEST=ON -DCMAKE_INSTALL_PREFIX:PATH=destination .. &&
16
+ cmake -DFASTFLOAT_CXX_STANDARD =20 -DFASTFLOAT_TEST=ON -DCMAKE_INSTALL_PREFIX:PATH=destination .. &&
17
17
cmake --build . &&
18
18
ctest --output-on-failure &&
19
19
cmake --install .
Original file line number Diff line number Diff line change 20
20
run : |
21
21
mkdir build20 &&
22
22
cd build20 &&
23
- CXX=clang++-14 cmake -DFASTFLOAT_CONSTEXPR_TESTS=ON -DCMAKE_CXX_STANDARD =20 -DFASTFLOAT_TEST=ON .. &&
23
+ CXX=clang++-14 cmake -DFASTFLOAT_CONSTEXPR_TESTS=ON -DFASTFLOAT_CXX_STANDARD =20 -DFASTFLOAT_TEST=ON .. &&
24
24
cmake --build . &&
25
25
ctest --output-on-failure
Original file line number Diff line number Diff line change 18
18
run : |
19
19
mkdir build20 &&
20
20
cd build20 &&
21
- CXX=g++-12 CXXFLAGS=-Werror cmake -DFASTFLOAT_CONSTEXPR_TESTS=ON -DCMAKE_CXX_STANDARD =20 -DFASTFLOAT_TEST=ON .. &&
21
+ CXX=g++-12 CXXFLAGS=-Werror cmake -DFASTFLOAT_CONSTEXPR_TESTS=ON -DFASTFLOAT_CXX_STANDARD =20 -DFASTFLOAT_TEST=ON .. &&
22
22
cmake --build . &&
23
23
ctest --output-on-failure
Original file line number Diff line number Diff line change 20
20
- name : configure
21
21
run : >-
22
22
cmake -S . -B build -G "${{matrix.gen}}" -A ${{matrix.arch}}
23
- -DCMAKE_CXX_STANDARD =20
23
+ -DFASTFLOAT_CXX_STANDARD =20
24
24
-DFASTFLOAT_TEST=ON
25
25
-DFASTFLOAT_CONSTEXPR_TESTS=ON
26
26
-DCMAKE_INSTALL_PREFIX:PATH=destination
Original file line number Diff line number Diff line change @@ -2,6 +2,8 @@ cmake_minimum_required(VERSION 3.15)
2
2
3
3
project (test_install VERSION 0.1.0 LANGUAGES CXX)
4
4
5
+ set (FASTFLOAT_CXX_STANDARD 17 CACHE STRING "the C++ standard to use for fastfloat" )
6
+ set (CMAKE_CXX_STANDARD ${FASTFLOAT_CXX_STANDARD} )
5
7
set (CMAKE_CXX_STANDARD 17)
6
8
set (CMAKE_CXX_STANDARD_REQUIRED ON )
7
9
if (MSVC_VERSION GREATER 1910)
You can’t perform that action at this time.
0 commit comments