Install the `locale` directory in a standard location without subfolder (#9618)
authorHugo Locurcio <hugo.locurcio@hugo.pro>
Fri, 10 Apr 2020 14:08:48 +0000 (16:08 +0200)
committerGitHub <noreply@github.com>
Fri, 10 Apr 2020 14:08:48 +0000 (16:08 +0200)
Other established FOSS projects don't seem to be doing this.

CMakeLists.txt

index bf409c124cdcf1c203a14bbc6e0a0866b8ea0e7d..8cf89dd1766a5cccc202ed10ebf1dd3a4c21bdb3 100644 (file)
@@ -102,7 +102,7 @@ elseif(UNIX) # Linux, BSD etc
                set(XDG_APPS_DIR "${CMAKE_INSTALL_PREFIX}/share/applications")
                set(APPDATADIR "${CMAKE_INSTALL_PREFIX}/share/metainfo")
                set(ICONDIR "${CMAKE_INSTALL_PREFIX}/share/icons")
-               set(LOCALEDIR "${CMAKE_INSTALL_PREFIX}/share/${PROJECT_NAME}/locale")
+               set(LOCALEDIR "${CMAKE_INSTALL_PREFIX}/share/locale")
        endif()
 endif()
 
@@ -325,4 +325,3 @@ if(DOXYGEN_FOUND)
                COMMENT "Generating API documentation with Doxygen" VERBATIM
        )
 endif()
-