From f9b0f156444df5aee7301f88f6c3b4608112d707 Mon Sep 17 00:00:00 2001 From: Luc Grosheintz Date: Wed, 6 Nov 2024 10:41:44 +0100 Subject: [PATCH] Fix NMODL_GENERATED_SOURCES without Python. --- src/language/code_generator.cmake | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/language/code_generator.cmake b/src/language/code_generator.cmake index ae8d5e292..6c88f005a 100644 --- a/src/language/code_generator.cmake +++ b/src/language/code_generator.cmake @@ -176,6 +176,7 @@ set(AST_GENERATED_SOURCES ${PROJECT_BINARY_DIR}/src/ast/write_ion_var.hpp ) +if(NMODL_ENABLE_PYTHON) set(PYBIND_GENERATED_SOURCES ${PROJECT_BINARY_DIR}/src/pybind/pyast.cpp ${PROJECT_BINARY_DIR}/src/pybind/pyast.hpp @@ -185,6 +186,7 @@ set(PYBIND_GENERATED_SOURCES ${PROJECT_BINARY_DIR}/src/pybind/pyvisitor.cpp ${PROJECT_BINARY_DIR}/src/pybind/pyvisitor.hpp ) +endif() set(VISITORS_GENERATED_SOURCES ${PROJECT_BINARY_DIR}/src/visitors/ast_visitor.cpp