CMake: Skip pot on MSVC

This commit is contained in:
Jonas Kvinge 2024-08-25 15:40:18 +02:00
parent 148ae530d8
commit 7dd959f4a1
1 changed files with 10 additions and 8 deletions

View File

@ -1029,6 +1029,7 @@ if(HAVE_TRANSLATIONS)
endif(NOT LINGUAS OR LINGUAS STREQUAL "None")
endif(LINGUAS STREQUAL "All")
if(NOT MSVC)
add_pot(POT
${CMAKE_CURRENT_SOURCE_DIR}/translations/header
${CMAKE_CURRENT_SOURCE_DIR}/translations/translations.pot
@ -1037,6 +1038,7 @@ if(HAVE_TRANSLATIONS)
${UIC}
${CMAKE_SOURCE_DIR}/data/html/oauthsuccess.html
)
endif()
add_po(PO strawberry_ LANGUAGES ${LANGUAGES} DIRECTORY translations)
endif(HAVE_TRANSLATIONS)