Skip to content

Commit

Permalink
allow building netgen without submodule pybind11
Browse files Browse the repository at this point in the history
  • Loading branch information
looooo committed Jan 14, 2019
1 parent 97bfaa0 commit 813d1b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -274,12 +274,12 @@ endif (USE_GUI)

#######################################################################
if (USE_PYTHON)
add_subdirectory(external_dependencies/pybind11)
add_definitions(-DNG_PYTHON)
if(BUILD_WITH_CONDA)
find_package(pybind11 REQUIRED)
set(PYBIND_INCLUDE_DIR PYBIND11_INCLUDE_DIR)
else(BUILD_WITH_CONDA)
add_subdirectory(external_dependencies/pybind11)
find_path(PYBIND_INCLUDE_DIR pybind11/pybind11.h HINTS ${PYTHON_INCLUDE_DIR})
if( PYBIND_INCLUDE_DIR )
message(STATUS "Found Pybind11: ${PYBIND_INCLUDE_DIR}")
Expand Down

0 comments on commit 813d1b9

Please sign in to comment.