in both I faced with this error. 
You can now build and install 'nestml_dopa_module' using
  make
  make install
The library file libnestml_dopa_module.so will be installed to
  /build/nest-8dIXHU/nest-3.4/debian/nest/usr/lib/nest
The module can be loaded into NEST using
  (nestml_dopa_module) Install       (in SLI)
  nest.Install(nestml_dopa_module)   (in PyNEST)
CMake Warning (dev) in CMakeLists.txt:
  No cmake_minimum_required command is present.  A line of code such as
    cmake_minimum_required(VERSION 3.22)
  should be added at the top of the file.  The version specified may be lower
  if you wish to support older CMake versions for this project.  For more
  information run "cmake --help-policy CMP0000".
This warning is for project developers.  Use -Wno-dev to suppress it.
-- Configuring done
-- Generating done
-- Build files have been written to: /home/atine/test/dopamine-synapse-component
[ 25%] Building CXX object CMakeFiles/nestml_dopa_module_module.dir/aeif_cond_alpha_nestml.o
[ 50%] Building CXX object CMakeFiles/nestml_dopa_module_module.dir/aeif_cond_alpha_nestml__with_dopamine_synapse_nestml.o
[ 75%] Building CXX object CMakeFiles/nestml_dopa_module_module.dir/nestml_dopa_module.o
/home/atine/test/dopamine-synapse-component/nestml_dopa_module.cpp:26:10: fatal error: connection_manager_impl.h: No such file or directory
   26 | #include "connection_manager_impl.h"
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/nestml_dopa_module_module.dir/build.make:76: CMakeFiles/nestml_dopa_module_module.dir/nestml_dopa_module.o] Error 1
make[2]: *** Waiting for unfinished jobs....
/home/atine/test/dopamine-synapse-component/aeif_cond_alpha_nestml__with_dopamine_synapse_nestml.cpp:29:10: fatal error: numerics.h: No such file or directory
   29 | #include "numerics.h"
      |          ^~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/nestml_dopa_module_module.dir/build.make:104: CMakeFiles/nestml_dopa_module_module.dir/aeif_cond_alpha_nestml__with_dopamine_synapse_nestml.o] Error 1
/home/atine/test/dopamine-synapse-component/aeif_cond_alpha_nestml.cpp:29:10: fatal error: numerics.h: No such file or directory
   29 | #include "numerics.h"
      |          ^~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/nestml_dopa_module_module.dir/build.make:90: CMakeFiles/nestml_dopa_module_module.dir/aeif_cond_alpha_nestml.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:110: CMakeFiles/nestml_dopa_module_module.dir/all] Error 2
make: *** [Makefile:156: all] Error 2
Traceback (most recent call last):
  File "/home/atine/.local/lib/python3.10/site-packages/pynestml/codegeneration/nest_builder.py", line 176, in build
    subprocess.check_call(make_all_cmd, stderr=stderr, stdout=stdout, shell=shell,
  File "/usr/lib/python3.10/subprocess.py", line 369, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['make', '-j3', 'all']' returned non-zero exit status 2.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "/home/atine/test/create_dopa_synapse.py", line 16, in <module>
    generate_nest_target(input_path=["/home/atine/nestml/models/neurons/aeif_cond_alpha.nestml",
  File "/home/atine/.local/lib/python3.10/site-packages/pynestml/frontend/pynestml_frontend.py", line 229, in generate_nest_target
    generate_target(input_path, target_platform="NEST", target_path=target_path, logging_level=logging_level,
  File "/home/atine/.local/lib/python3.10/site-packages/pynestml/frontend/pynestml_frontend.py", line 198, in generate_target
    if not process() == 0:
  File "/home/atine/.local/lib/python3.10/site-packages/pynestml/frontend/pynestml_frontend.py", line 351, in process
    _builder.build()
  File "/home/atine/.local/lib/python3.10/site-packages/pynestml/codegeneration/nest_builder.py", line 183, in build
    raise GeneratedCodeBuildException(stages_exception[current_stage])
pynestml.exceptions.generated_code_build_exception.GeneratedCodeBuildException: Error occurred during 'make all'! More detailed error messages can be found in stderr.
Thank you for your help.