Commits on Source (2)
...@@ -29,6 +29,12 @@ if(NOT TARGET genopts_virtualenv) ...@@ -29,6 +29,12 @@ if(NOT TARGET genopts_virtualenv)
DEPENDS ${GENOPTS_VIRTUALENV} DEPENDS ${GENOPTS_VIRTUALENV}
DEPENDS ${CMAKE_CURRENT_LIST_DIR}/requirements.txt 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() endif()
# Export a target with the location of the script in case someone needs this # Export a target with the location of the script in case someone needs this
......