Skip to content

Commit

Permalink
Update CMakeLists.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
Prevter committed Jan 2, 2025
1 parent bde94f7 commit a104562
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
cmake_minimum_required(VERSION 3.21)

function(setup_translations target)
if (DEFINED ENV{ECLIPSE_TRANSLATIONS_REPO_PATH})
set(TRANSLATIONS_PATH $ENV{ECLIPSE_TRANSLATIONS_REPO_PATH})
else()
set(TRANSLATIONS_PATH ${CMAKE_CURRENT_BINARY_DIR}/eclipse-translations)
if (DEFINED TRANSLATIONS_PATH)
message(STATUS "Using translations from: ${TRANSLATIONS_PATH}.")
if (NOT DEFINED ENV{ECLIPSE_TRANSLATIONS_REPO_PATH})
message(STATUS "To use local translations, set ECLIPSE_TRANSLATIONS_REPO_PATH environment variable.")
endif()
endif()

# Refresh translations on every build
Expand Down

0 comments on commit a104562

Please sign in to comment.