Skip to content

Commit

Permalink
Fix file copying for Python helper files.
Browse files Browse the repository at this point in the history
  • Loading branch information
1uc committed Aug 31, 2023
1 parent 8079c5e commit 5e28610
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/pybind/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,14 @@ add_custom_command(
# =============================================================================
# Copy python binding components and examples into build directory
# =============================================================================
file(GLOB NMODL_PYTHON_HELPER_FILES "${NMODL_PROJECT_SOURCE_DIR}/nmodl/*.py")
file(COPY ${NMODL_PYTHON_HELPER_FILES} DESTINATION ${CMAKE_BINARY_DIR}/lib/nmodl/)
file(
GLOB NMODL_PYTHON_HELPER_FILES
RELATIVE "${NMODL_PROJECT_SOURCE_DIR}/nmodl/"
"${NMODL_PROJECT_SOURCE_DIR}/nmodl/*.py")
foreach(file IN LISTS NMODL_PYTHON_HELPER_FILES)
cpp_cc_build_time_copy(INPUT ${NMODL_PROJECT_SOURCE_DIR}/nmodl/${file} OUTPUT
${CMAKE_BINARY_DIR}/lib/nmodl/${file})
endforeach()
file(COPY ${NMODL_PROJECT_SOURCE_DIR}/nmodl/ext DESTINATION ${CMAKE_BINARY_DIR}/lib/nmodl/)

# =============================================================================
Expand Down

0 comments on commit 5e28610

Please sign in to comment.