diff --git a/Applications/CLI/ogs_embedded_python.cpp b/Applications/CLI/ogs_embedded_python.cpp index 21ae3c9d7261983bd71bbee9c6379f45eea68655..a76c3a9fdbf79c2c2ae49f308fe417ed766eaa8f 100644 --- a/Applications/CLI/ogs_embedded_python.cpp +++ b/Applications/CLI/ogs_embedded_python.cpp @@ -7,6 +7,7 @@ * */ +#ifdef OGS_EMBED_PYTHON_INTERPRETER #include "ogs_embedded_python.h" #include <pybind11/embed.h> @@ -59,3 +60,4 @@ pybind11::scoped_interpreter setupEmbeddedPython() } } // namespace ApplicationsLib +#endif diff --git a/Applications/CLI/ogs_embedded_python.h b/Applications/CLI/ogs_embedded_python.h index 7a6a192eceb9bb9b095d70f07b7fdca752ca1b1e..b9c6d37c9bd95b237569f0d0b909a4e470955a78 100644 --- a/Applications/CLI/ogs_embedded_python.h +++ b/Applications/CLI/ogs_embedded_python.h @@ -9,6 +9,8 @@ #pragma once +#ifdef OGS_EMBED_PYTHON_INTERPRETER + #include <pybind11/embed.h> #include "BaseLib/ExportSymbol.h" @@ -19,3 +21,5 @@ namespace ApplicationsLib OGS_EXPORT_SYMBOL pybind11::scoped_interpreter setupEmbeddedPython(); } // namespace ApplicationsLib + +#endif