Skip to content

Commit 6b53813

Browse files
committed
Don't visit po/ at all when translations are disabled
1 parent b7c4039 commit 6b53813

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

CMakeLists.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,10 @@ ENDIF (WIN32)
5151
ADD_SUBDIRECTORY(src)
5252

5353
# Add data packages
54-
FIND_PACKAGE(Gettext)
55-
ADD_SUBDIRECTORY(po)
54+
IF(NOT DISABLE_TRANSLATIONS)
55+
FIND_PACKAGE(Gettext)
56+
ADD_SUBDIRECTORY(po)
57+
ENDIF(NOT DISABLE_TRANSLATIONS)
5658

5759
# CPack installation part
5860
If(UNIX)

0 commit comments

Comments
 (0)