Skip to content

Commit

Permalink
Test: build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
shizuo-kaji committed Jan 8, 2025
1 parent 52cb90c commit ba67207
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
3 changes: 0 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +0,0 @@
[submodule "pybind11"]
path = pybind11
url = https://github.com/pybind/pybind11.git
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_FLAGS "-O3")
set(CMAKE_POSITION_INDEPENDENT_CODE ON)

find_package(Python REQUIRED COMPONENTS Interpreter Development.Module)
find_package(pybind11 CONFIG REQUIRED)

# Include directories
include_directories("src/")

Expand Down
1 change: 0 additions & 1 deletion pybind11
Submodule pybind11 deleted from f3e060
4 changes: 3 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,12 @@ authors = [
requires = ["setuptools", "wheel", "scikit-build>=0.13", "cmake>=3.15", "pybind11"]

[tool.scikit-build]
cmake.minimum_required = "3.15" # Minimum CMake version
wheel.expand-macos-universal-tags = true
minimum-version = "build-system.requires"
cmake.configure-args = [
"-DCMAKE_CXX_STANDARD=14",
"-DCMAKE_CXX_STANDARD_REQUIRED=ON",
"-DCMAKE_CXX_FLAGS=-O3", # Or "-DCMAKE_CXX_FLAGS_RELEASE=-O3" for Release builds
"-DCMAKE_POSITION_INDEPENDENT_CODE=ON"
]

0 comments on commit ba67207

Please sign in to comment.