File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -118,14 +118,14 @@ jobs:
118
118
shell : bash
119
119
run : >
120
120
cmake -S . -B build2
121
- -DPYBIND17_WERROR =ON
121
+ -DPYBIND11_WERROR =ON
122
122
-DDOWNLOAD_CATCH=ON
123
123
-DDOWNLOAD_EIGEN=ON
124
124
-DCMAKE_CXX_STANDARD=${{ matrix.max-cxx-std }}
125
125
-DPYTHON_EXECUTABLE=$(python -c "import sys; print(sys.executable)")
126
126
127
127
- name : Build C++${{ matrix.max-cxx-std }}
128
- run : cmake --build build2 -j 2
128
+ run : cmake --build build2 -j 2 -v
129
129
130
130
- name : Python tests C++${{ matrix.max-cxx-std }}
131
131
run : cmake --build build2 --target pytest
Original file line number Diff line number Diff line change @@ -181,11 +181,15 @@ endif()
181
181
182
182
message (STATUS "CXX Compiler version: ${CMAKE_CXX_COMPILER_VERSION} " )
183
183
184
+ # Workaround for Python 2.7 and C++17 (C++14 as a warning) incompatibility
184
185
set (clang_4plus
185
186
"$<AND:$<CXX_COMPILER_ID:Clang>,$<NOT:$<VERSION_LESS:$<CXX_COMPILER_VERSION>,3.9>>>" )
186
187
set (no_register "$<OR:${clang_4plus} ,$<CXX_COMPILER_ID:AppleClang>>" )
187
- target_compile_options (pybind11
188
- INTERFACE "$<${no_register} :-Wno-register;-Wno-deprecated-register>" )
188
+ set (cxx_no_register "$<AND:$<COMPILE_LANGUAGE:language>,${no_register} >" )
189
+ set (msvc "$<CXX_COMPILER_ID:MSVC>" )
190
+ target_compile_options (
191
+ pybind11 INTERFACE "$<${cxx_no_register} :-Wno-register;-Wno-deprecated-register>"
192
+ "$<${msvc} :/wd5033>" )
189
193
190
194
add_library (embed INTERFACE )
191
195
add_library (pybind11::embed ALIAS embed )
You can’t perform that action at this time.
0 commit comments