Skip to content

Commit

Permalink
Debian 10 is using CMake 3.13 which doesn't support TYPE LOCALE, so u…
Browse files Browse the repository at this point in the history
…se DESTINATION with CMAKE_INSTALL_LOCALEDIR as argument
  • Loading branch information
codereader committed Dec 24, 2020
1 parent 18cd6e6 commit 6b7f8b5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion CMakeLists.txt
Expand Up @@ -148,9 +148,14 @@ install(DIRECTORY install/ui DESTINATION ${PKGDATADIR}
FILES_MATCHING PATTERN "*.ttf" PATTERN "*.xrc")

# Install locale data
if (${CMAKE_VERSION} VERSION_GREATER_EQUAL "3.14")
# CMake 3.14 and above support TYPE LOCALE, they deduct DESTINATION themselves
install(DIRECTORY install/i18n/de TYPE LOCALE
#DESTINATION ${PKGDATADIR}
FILES_MATCHING PATTERN "*.mo")
else()
install(DIRECTORY install/i18n/de DESTINATION ${CMAKE_INSTALL_LOCALEDIR}
FILES_MATCHING PATTERN "*.mo")
endif()

# Install scripts
install(DIRECTORY install/scripts DESTINATION ${PKGDATADIR}
Expand Down

0 comments on commit 6b7f8b5

Please sign in to comment.