From 7f753027ef64ef95922f550bab4cf5ccf9b00504 Mon Sep 17 00:00:00 2001 From: lo Date: Mon, 14 Jan 2019 22:38:22 +0100 Subject: [PATCH] allow building netgen without submodule pybind11 --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index f8937c0e..e9b528ea 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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}")