Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
pybind11_abseil
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_abseil
Commits
ca5b7bd9
Commit
ca5b7bd9
authored
Jan 09, 2024
by
pybind11_abseil authors
Committed by
Copybara-Service
Jan 09, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move to Pybind11 at HEAD. Fix test execution error. Fix CMake policy warning.
PiperOrigin-RevId: 597039706
parent
19cbc499
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
CMakeLists.txt
+5
-2
pybind11_abseil/tests/CMakeLists.txt
+4
-0
No files found.
CMakeLists.txt
View file @
ca5b7bd9
...
@@ -11,6 +11,9 @@ set(ABSL_PROPAGATE_CXX_STD ON)
...
@@ -11,6 +11,9 @@ set(ABSL_PROPAGATE_CXX_STD ON)
set
(
BUILD_TESTING OFF
)
set
(
BUILD_TESTING OFF
)
set
(
CMAKE_POSITION_INDEPENDENT_CODE TRUE
)
set
(
CMAKE_POSITION_INDEPENDENT_CODE TRUE
)
set
(
CMAKE_INTERPROCEDURAL_OPTIMIZATION FALSE
)
set
(
CMAKE_INTERPROCEDURAL_OPTIMIZATION FALSE
)
cmake_policy
(
SET CMP0135 NEW
)
find_package
(
Python3 COMPONENTS interpreter development
)
FetchContent_Declare
(
FetchContent_Declare
(
abseil-cpp
abseil-cpp
...
@@ -20,12 +23,12 @@ FetchContent_Declare(
...
@@ -20,12 +23,12 @@ FetchContent_Declare(
FetchContent_Declare
(
FetchContent_Declare
(
pybind11
pybind11
URL https://github.com/pybind/pybind11/archive/
7d538a42750c8580eeaac10e505840a3694b04c8
.tar.gz
)
URL https://github.com/pybind/pybind11/archive/
refs/heads/master
.tar.gz
)
FetchContent_MakeAvailable
(
abseil-cpp pybind11
)
FetchContent_MakeAvailable
(
abseil-cpp pybind11
)
set
(
TOP_LEVEL_DIR
${
CMAKE_CURRENT_LIST_DIR
}
)
set
(
TOP_LEVEL_DIR
${
CMAKE_CURRENT_LIST_DIR
}
)
include_directories
(
${
TOP_LEVEL_DIR
}
${
PYTHON_INCLUDE_DIR
}
include_directories
(
${
TOP_LEVEL_DIR
}
${
pybind11_INCLUDE_DIRS
}
)
${
pybind11_INCLUDE_DIRS
}
)
add_subdirectory
(
pybind11_abseil
)
add_subdirectory
(
pybind11_abseil
)
pybind11_abseil/tests/CMakeLists.txt
View file @
ca5b7bd9
...
@@ -8,6 +8,10 @@ target_link_libraries(
...
@@ -8,6 +8,10 @@ target_link_libraries(
shared_ptr_from_capsule absl::statusor
)
shared_ptr_from_capsule absl::statusor
)
# cpp_capsule_tools_testing_test ===============================================
# cpp_capsule_tools_testing_test ===============================================
if
(
NOT DEFINED PYTHON_EXECUTABLE
)
set
(
PYTHON_EXECUTABLE
${
PYBIND11_PYTHON_EXECUTABLE_LAST
}
)
endif
()
add_test
(
add_test
(
NAME cpp_capsule_tools_testing_test
NAME cpp_capsule_tools_testing_test
COMMAND
COMMAND
...
...
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