Resolve "Generated virtualenv should be removed when using `ninja clean`"

Closes #6 (closed)

Edited by Alberto Miranda

Merge request reports

Loading
+6 −0
Changes for CMakeLists.txt: 6 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -29,6 +29,12 @@ if(NOT TARGET genopts_virtualenv)
    DEPENDS ${GENOPTS_VIRTUALENV}
    DEPENDS ${CMAKE_CURRENT_LIST_DIR}/requirements.txt
  )

  # Ensure the virtual environment is removed when cleaning
  set_property(
    TARGET genopts_virtualenv
    APPEND
    PROPERTY ADDITIONAL_CLEAN_FILES ${GENOPTS_VIRTUALENV})
endif()

# Export a target with the location of the script in case someone needs this
Loading