CMake: Skip pot on MSVC

This commit is contained in:
Jonas Kvinge
2024-08-25 15:40:18 +02:00
parent 148ae530d8
commit 7dd959f4a1

View File

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