Skip to content

Commit 7f9782a

Browse files
committed
cmake: Fix CMP0175 warning by adding POST_BUILD to TARGET form of add_custom_command()
1 parent 813c420 commit 7f9782a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

locale/CMakeLists.txt

+1
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ foreach(po_file ${po_files})
4646

4747
add_custom_command(
4848
TARGET generate_mo_files_${po_file_name}
49+
POST_BUILD
4950
COMMAND ${MSGFMT} --statistics -o
5051
${OUTDIR}/${GRASS_INSTALL_LOCALEDIR}/${mo_file} ${po_file}
5152
BYPRODUCTS ${OUTDIR}/${GRASS_INSTALL_LOCALEDIR}/${mo_file})

0 commit comments

Comments
 (0)