Skip to content

Commit fa654d2

Browse files
HuidaeChoechoix
andauthored
cmake: Fix locale build (#5385)
* cmake: Fix locale build * Use OUTPUT instead of TARGET --------- Co-authored-by: Edouard Choinière <[email protected]>
1 parent f173096 commit fa654d2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

locale/CMakeLists.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ foreach(_locale ${_locales})
2626
DEPENDS generate_mo_files_dir
2727
COMMENT "Create locale specific directories")
2828
add_custom_command(
29-
OUTPUT generate_mo_files_dir_${_locale}
29+
OUTPUT ${OUTDIR}/${GRASS_INSTALL_LOCALEDIR}/${_locale}/LC_MESSAGES
3030
COMMAND ${CMAKE_COMMAND} -E make_directory
31-
${OUTDIR}/${GRASS_INSTALL_LOCALEDIR}/${_locale})
31+
${OUTDIR}/${GRASS_INSTALL_LOCALEDIR}/${_locale}/LC_MESSAGES)
3232
endforeach()
3333
unset(_locales)
3434

@@ -41,7 +41,7 @@ foreach(po_file ${po_files})
4141

4242
add_custom_target(
4343
generate_mo_files_${po_file_name} ALL
44-
DEPENDS generate_mo_files_dir_${_locale}
44+
DEPENDS ${OUTDIR}/${GRASS_INSTALL_LOCALEDIR}/${_locale}/LC_MESSAGES
4545
COMMENT "Generate mo files")
4646

4747
add_custom_command(

0 commit comments

Comments
 (0)