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

Ensure the virtual environment is removed when make/ninja clean

parent 1dcef400
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