Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
pybind11
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open
pybind11
Commits
f64d5aa6
Commit
f64d5aa6
authored
Jul 29, 2020
by
Henry Schreiner
Committed by
Henry Schreiner
Jul 30, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: typo for warning on C++17, support Win + 2.7
parent
1b92cd17
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
.github/workflows/ci.yml
+2
-2
CMakeLists.txt
+6
-1
No files found.
.github/workflows/ci.yml
View file @
f64d5aa6
...
...
@@ -118,14 +118,14 @@ jobs:
shell
:
bash
run
:
>
cmake -S . -B build2
-DPYBIND1
7
_WERROR=ON
-DPYBIND1
1
_WERROR=ON
-DDOWNLOAD_CATCH=ON
-DDOWNLOAD_EIGEN=ON
-DCMAKE_CXX_STANDARD=${{ matrix.max-cxx-std }}
-DPYTHON_EXECUTABLE=$(python -c "import sys; print(sys.executable)")
-
name
:
Build C++${{ matrix.max-cxx-std }}
run
:
cmake --build build2 -j 2
run
:
cmake --build build2 -j 2
-v
-
name
:
Python tests C++${{ matrix.max-cxx-std }}
run
:
cmake --build build2 --target pytest
...
...
CMakeLists.txt
View file @
f64d5aa6
...
...
@@ -176,9 +176,14 @@ endif()
message
(
STATUS
"CXX Compiler version:
${
CMAKE_CXX_COMPILER_VERSION
}
"
)
# Workaround for Python 2.7 and C++17 (C++14 as a warning) incompatibility
set
(
clang_4plus
"$<AND:$<CXX_COMPILER_ID:Clang>,$<NOT:$<VERSION_LESS:$<CXX_COMPILER_VERSION>,3.9>>>"
)
set
(
no_register
"$<OR:
${
clang_4plus
}
,$<CXX_COMPILER_ID:AppleClang>>"
)
target_compile_options
(
pybind11 INTERFACE
"$<
${
no_register
}
:-Wno-register;-Wno-deprecated-register>"
)
set
(
cxx_no_register
"$<AND:$<COMPILE_LANGUAGE:CXX>,
${
no_register
}
>"
)
set
(
msvc
"$<CXX_COMPILER_ID:MSVC>"
)
target_compile_options
(
pybind11 INTERFACE
"$<
${
cxx_no_register
}
:-Wno-register;-Wno-deprecated-register>"
"$<
${
msvc
}
:/wd5033>"
)
add_library
(
embed INTERFACE
)
add_library
(
pybind11::embed ALIAS embed
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment