From a75c42ac22507c9e190513a3f8f9e79e9bb50275 Mon Sep 17 00:00:00 2001 From: Andrej Prochazka Date: Mon, 17 May 2021 15:49:00 +0200 Subject: [PATCH] Update CMakeLists.txt --- CMakeLists.txt | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ffbfa8e..ffbd35d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -103,8 +103,12 @@ if(PYTHON_MODULE) if(NOT PYTHONINTERP_FOUND) MESSAGE(SEND_ERROR "Python is required to build nurex python modules") endif(NOT PYTHONINTERP_FOUND) - find_package(pybind11 REQUIRED) - set(PYBIND11_CPP_STANDARD -std=c++14) + find_package(pybind11 QUIET) + if(NOT pybind11_FOUND) + add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/extern/pybind11) + endif(NOT pybind11_FOUND) + + #set(PYBIND11_CPP_STANDARD -std=c++14) pybind11_add_module(pycatima pymodule/pycatima) target_include_directories(pycatima PUBLIC $