File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4545 cmake-linux-ci-opts-
4646 - name : Compile
4747 run : |
48- cmake --preset linux-ci-build-with-nonstandard-options -DQL_COMPILE_WARNING_AS_ERROR=ON - L
48+ cmake --preset linux-ci-build-with-nonstandard-options -L
4949 cmake --build --preset linux-ci-build-with-nonstandard-options --verbose
5050 - name : Test
5151 run : |
@@ -144,7 +144,7 @@ jobs:
144144 shell : cmd
145145 run : |
146146 call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Vc\Auxiliary\Build\vcvarsall.bat" amd64 -vcvars_ver=14.3 || exit 1
147- cmake --preset windows-ci-build-with-nonstandard-options -DQL_COMPILE_WARNING_AS_ERROR=ON - L
147+ cmake --preset windows-ci-build-with-nonstandard-options -L
148148 cmake --build --preset windows-ci-build-with-nonstandard-options --verbose
149149 - name : Test
150150 run : |
Original file line number Diff line number Diff line change 116116 "QL_HIGH_RESOLUTION_DATE" : " ON" ,
117117 "QL_NULL_AS_FUNCTIONS" : " ON" ,
118118 "QL_USE_INDEXED_COUPON" : " ON" ,
119- "QL_USE_STD_CLASSES" : " ON"
119+ "QL_USE_STD_CLASSES" : " ON" ,
120+ "QL_COMPILE_WARNING_AS_ERROR" : " ON"
120121 }
121122 },
122123 {
137138 "QL_NULL_AS_FUNCTIONS" : " ON" ,
138139 "QL_USE_INDEXED_COUPON" : " ON" ,
139140 "QL_USE_STD_CLASSES" : " ON" ,
141+ "QL_COMPILE_WARNING_AS_ERROR" : " ON" ,
140142 "CMAKE_CXX_COMPILER_LAUNCHER" : " sccache"
141143 },
142144 "vendor" : {
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ if (MSVC)
3232 add_compile_options (/wd4267 /wd4819 /wd26812 )
3333
3434 # prevent warnings when using /std:c++17 and above
35- if (CMAKE_CXX_STANDARD GREATER 14 )
35+ if (CMAKE_CXX_STANDARD GREATER_EQUAL 17 )
3636 # E.g. caused by #include <boost/numeric/ublas/matrix.hpp>
3737 # In c++17 std::iterator is deprecated. As of boost 1.81 boost::ublas has not provided a fix for this.
3838 add_compile_definitions (_SILENCE_CXX17_ITERATOR_BASE_CLASS_DEPRECATION_WARNING )
You can’t perform that action at this time.
0 commit comments