cmake: Clean up vita data dir before copying

This commit is contained in:
Sebastian Krzyszkowiak 2021-07-25 00:51:50 +02:00
parent 6486103517
commit dd74c2cc2d
No known key found for this signature in database
GPG key ID: E8F235CF3BDBC3FF

View file

@ -632,6 +632,7 @@ if (NOT LIBSUPERDERPY_CONFIG_INCLUDED)
message(FATAL_ERROR "No TitleID for Vita provided (LIBSUPERDERPY_VITA_TITLEID)")
endif()
file(REMOVE_RECURSE "${CMAKE_BINARY_DIR}/vita")
file(COPY "${CMAKE_SOURCE_DIR}/data" DESTINATION "${CMAKE_BINARY_DIR}/vita/" PATTERN "stuff" EXCLUDE
PATTERN ".git" EXCLUDE
PATTERN ".gitignore" EXCLUDE