mirror of
https://github.com/clementine-player/Clementine
synced 2024-12-15 10:48:33 +01:00
Use lconvert from the Qt sdk rather than $PATH, if it's available
This commit is contained in:
parent
4234700e24
commit
37f7b1ca3b
@ -15,6 +15,10 @@ if(UNIX AND NOT APPLE)
|
||||
endif(UNIX AND NOT APPLE)
|
||||
find_package(Qt4 COMPONENTS Phonon)
|
||||
|
||||
# Find Qt's lconvert binary. Try qt's binary dir first, fall back to looking in PATH
|
||||
find_program(QT_LCONVERT_EXECUTABLE NAMES lconvert lconvert-qt4 PATHS ${QT_BINARY_DIR} NO_DEFAULT_PATH)
|
||||
find_program(QT_LCONVERT_EXECUTABLE NAMES lconvert lconvert-qt4)
|
||||
|
||||
if(APPLE)
|
||||
if(NOT QT_MAC_USE_COCOA)
|
||||
message(FATAL_ERROR "Cocoa support is required")
|
||||
|
@ -318,7 +318,7 @@ foreach (_lang ${CLEMENTINE-LANGUAGES})
|
||||
set(_qm_filepath "${CMAKE_CURRENT_BINARY_DIR}/${_qm_filename}")
|
||||
|
||||
add_custom_command(OUTPUT ${_qm_filepath}
|
||||
COMMAND lconvert ARGS ${_po_filepath} -o ${_qm_filepath} -of qm
|
||||
COMMAND ${QT_LCONVERT_EXECUTABLE} ARGS ${_po_filepath} -o ${_qm_filepath} -of qm
|
||||
MAIN_DEPENDENCY ${_po_filepath}
|
||||
)
|
||||
set(CLEMENTINE-QM-FILES ${CLEMENTINE-QM-FILES} ${_qm_filepath})
|
||||
|
Loading…
Reference in New Issue
Block a user