1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-27 15:50:10 +01:00

Improve CMake BSD compatibility (#433)

This commit is contained in:
Raphael Graf
2020-02-25 19:42:12 +01:00
committed by GitHub
parent da2e02242f
commit c886851edc
2 changed files with 8 additions and 8 deletions

View File

@@ -132,10 +132,10 @@ endif()
if( CMAKE_SYSTEM_NAME MATCHES "Darwin" )
set( locale "${_DEST}/Resources" )
elseif( CMAKE_SYSTEM_NAME MATCHES "Linux|FreeBSD" )
set( locale "${_DEST}/locale" )
elseif( CMAKE_SYSTEM_NAME MATCHES "Windows" )
set( locale "${_DEST}/Languanges" )
else()
set( locale "${_DEST}/locale" )
endif()
set( OUTPUTS )
@@ -144,10 +144,10 @@ foreach( source ${SOURCES} )
if( CMAKE_SYSTEM_NAME MATCHES "Darwin" )
set( dst "${locale}/${lang}.lproj" )
elseif( CMAKE_SYSTEM_NAME MATCHES "Linux|FreeBSD" )
set( dst "${locale}/${lang}/LC_MESSAGES" )
elseif( CMAKE_SYSTEM_NAME MATCHES "Windows" )
set( dst "${locale}/${lang}" )
else()
set( dst "${locale}/${lang}/LC_MESSAGES" )
endif()
set( po "${_SRCDIR}/${source}" )