Changeset View
Changeset View
Standalone View
Standalone View
kde-modules/KDECMakeSettings.cmake
Show First 20 Lines • Show All 336 Lines • ▼ Show 20 Line(s) | 325 | if(NOT EXISTS ${CMAKE_SOURCE_DIR}/po AND NOT TARGET fetch-translations) | |||
---|---|---|---|---|---|
337 | _repository_name(_reponame "${CMAKE_SOURCE_DIR}") | 337 | _repository_name(_reponame "${CMAKE_SOURCE_DIR}") | ||
338 | 338 | | |||
339 | set(releaseme_clone_commands | 339 | set(releaseme_clone_commands | ||
340 | COMMAND git clone --depth 1 https://anongit.kde.org/releaseme.git | 340 | COMMAND git clone --depth 1 https://anongit.kde.org/releaseme.git | ||
341 | ) | 341 | ) | ||
342 | add_custom_command( | 342 | add_custom_command( | ||
343 | OUTPUT "${CMAKE_BINARY_DIR}/releaseme" | 343 | OUTPUT "${CMAKE_BINARY_DIR}/releaseme" | ||
344 | ${releaseme_clone_commands} | 344 | ${releaseme_clone_commands} | ||
345 | WORKING_DIRECTORY "${CMAKE_BINARY_DIR}" | ||||
345 | COMMENT "Fetching releaseme scripts to download translations..." | 346 | COMMENT "Fetching releaseme scripts to download translations..." | ||
346 | ) | 347 | ) | ||
347 | 348 | | |||
348 | set(_l10n_po_dir "${CMAKE_BINARY_DIR}/po") | 349 | set(_l10n_po_dir "${CMAKE_BINARY_DIR}/po") | ||
349 | set(_l10n_poqm_dir "${CMAKE_BINARY_DIR}/poqm") | 350 | set(_l10n_poqm_dir "${CMAKE_BINARY_DIR}/poqm") | ||
350 | 351 | | |||
351 | if(CMAKE_VERSION VERSION_GREATER 3.2) | 352 | if(CMAKE_VERSION VERSION_GREATER 3.2) | ||
352 | set(extra BYPRODUCTS ${_l10n_po_dir} ${_l10n_poqm_dir}) | 353 | set(extra BYPRODUCTS ${_l10n_po_dir} ${_l10n_poqm_dir}) | ||
Show All 26 Lines |