Commit c456c2d8 authored by Alberto Miranda's avatar Alberto Miranda ♨️
Browse files

Merge branch '6-generated-virtualenv-should-be-removed-when-using-ninja-clean' into 'main'

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

Closes #6

See merge request !6
parents 1dcef400 bbe79a1d
Loading
Loading
Loading
Loading
+6 −0
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