Skip to content

Commit

Permalink
Add default Pybind11 location in CMakeLists.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
tlestang committed Mar 17, 2020
1 parent 3ec1351 commit 9aaf9fd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@ project(idaklu)
set (CMAKE_CXX_STANDARD 11)
set(CMAKE_POSITION_INDEPENDENT_CODE ON)

add_subdirectory(third-party/pybind11)
if(NOT PYBIND11_DIR)
set(PYBIND11_DIR third-party/pybind11)
endif()

add_subdirectory(${PYBIND11_DIR})
pybind11_add_module(idaklu pybamm/solvers/c_solvers/idaklu.cpp)

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${PROJECT_SOURCE_DIR})
Expand Down

0 comments on commit 9aaf9fd

Please sign in to comment.