cmake: Don't install the *.in files during an in-tree build

If an in-tree build was done on Linux, it would install
both the configured kicad.appdata.xml file and the template
kicad.appdata.xml.in file. This breaks packaging, and is not
needed.
This commit is contained in:
Ian McInerney 2020-01-03 17:49:27 +00:00
parent 2f75dfb09c
commit e54c954aed
1 changed files with 3 additions and 0 deletions

View File

@ -987,6 +987,9 @@ if( UNIX AND NOT APPLE )
install( DIRECTORY ${UNIX_APPDATA_FILES}
DESTINATION share
COMPONENT resources
FILES_MATCHING
PATTERN "*appdata.xml"
PATTERN "*.in" EXCLUDE
)
endif()