aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleix Pol <aleixpol@kde.org>2017-04-07 14:43:46 +0200
committerAleix Pol <aleixpol@kde.org>2017-04-07 14:43:46 +0200
commite82c7b986dd55aa31f22a5e4ddb53c42c363fc9c (patch)
treee03e8d32db346b3057993432ff614bf156e01a09
parent2cf8a01f35de0c26d82d3bcf6330558ac1b47bbf (diff)
downloadextra-cmake-modules-e82c7b986dd55aa31f22a5e4ddb53c42c363fc9c.tar.gz
extra-cmake-modules-e82c7b986dd55aa31f22a5e4ddb53c42c363fc9c.tar.bz2
Allow projects to include the file twice
-rw-r--r--kde-modules/KDECMakeSettings.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/kde-modules/KDECMakeSettings.cmake b/kde-modules/KDECMakeSettings.cmake
index c536e34a..e5f2ca6b 100644
--- a/kde-modules/KDECMakeSettings.cmake
+++ b/kde-modules/KDECMakeSettings.cmake
@@ -301,7 +301,7 @@ function(_repository_name reponame)
endif()
endfunction()
-if(NOT EXISTS ${CMAKE_SOURCE_DIR}/po)
+if(NOT EXISTS ${CMAKE_SOURCE_DIR}/po AND NOT TARGET fetch-translations)
option(KDE_L10N_AUTO_TRANSLATIONS "Automatically 'make fetch-translations`" OFF)
set(KDE_L10N_BRANCH "trunk" CACHE STRING "Branch from l10n.kde.org to fetch from: trunk | stable | lts | trunk_kde4 | stable_kde4")