Skip to content

Commit

Permalink
Don't generate pycache files in source directory (#59)
Browse files Browse the repository at this point in the history
When used as an esp idf component, generating pycache files troubles the component manager with a mismatched fingerprint.
Adding -B option fixes that
  • Loading branch information
pchevali authored Jun 30, 2024
1 parent bf6173f commit a1fbf71
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmake/functions.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ macro(generate_frogfs_rules)
set(OUTPUT ${BUILD_DIR}/CMakeFiles/${ARG_NAME})

add_custom_target(frogfs_preprocess_${ARG_NAME}
COMMAND ${Python3_VENV_EXECUTABLE} ${frogfs_DIR}/tools/mkfrogfs.py -C ${CMAKE_SOURCE_DIR} ${TOOLS} ${ARG_CONFIG} ${BUILD_DIR} ${OUTPUT}.bin
COMMAND ${Python3_VENV_EXECUTABLE} -B ${frogfs_DIR}/tools/mkfrogfs.py -C ${CMAKE_SOURCE_DIR} ${TOOLS} ${ARG_CONFIG} ${BUILD_DIR} ${OUTPUT}.bin
DEPENDS ${Python3_VENV}_requirements.stamp ${ARG_CONFIG}
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
BYPRODUCTS ${BUILD_DIR}/node_modules ${BUILD_DIR}/${ARG_NAME}-cache ${BUILD_DIR}/${ARG_NAME}-cache-state.json ${OUTPUT}.bin
Expand All @@ -53,7 +53,7 @@ function(target_add_frogfs target)
generate_frogfs_rules(${ARGV})

add_custom_command(OUTPUT ${OUTPUT}_bin.c
COMMAND ${Python3_VENV_EXECUTABLE} ${frogfs_DIR}/tools/bin2c.py ${OUTPUT}.bin ${OUTPUT}_bin.c
COMMAND ${Python3_VENV_EXECUTABLE} -B ${frogfs_DIR}/tools/bin2c.py ${OUTPUT}.bin ${OUTPUT}_bin.c
DEPENDS ${OUTPUT}.bin
COMMENT "Generating frogfs source file ${ARG_NAME}_bin.c"
)
Expand Down

0 comments on commit a1fbf71

Please sign in to comment.