Skip to content

Commit

Permalink
cmake: Make blspy optional
Browse files Browse the repository at this point in the history
  • Loading branch information
xdustinface authored and hoffmang9 committed Mar 9, 2021
1 parent 4e3ff76 commit 7995e3d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ ENDIF()

project(BLS)

set(BUILD_BLS_PYTHON_BINDINGS 1 CACHE INTEGER "")
message(STATUS "Build python bindings: ${BUILD_BLS_PYTHON_BINDINGS}")

# Add path for custom modules
set(CMAKE_MODULE_PATH
${CMAKE_MODULE_PATH}
Expand Down Expand Up @@ -89,5 +92,7 @@ if (EMSCRIPTEN)
else()
# emscripten can't build python bindings, it produces only javascript
# add_subdirectory(contrib/pybind11)
add_subdirectory(python-bindings)
if (BUILD_BLS_PYTHON_BINDINGS)
add_subdirectory(python-bindings)
endif()
endif()

0 comments on commit 7995e3d

Please sign in to comment.