Skip to content

Commit 9525d38

Browse files
committed
misc: do not generate ts files for debug build
Change-Id: Ief928ab7a91fe70068f547a07cbc67dcb09e3df5
1 parent 9dbabe6 commit 9525d38

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/CMakeLists.txt

+3-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,9 @@ file(GLOB TS LIST_DIRECTORIES false translations/${CMD_NAME}*.ts)
5555
set_source_files_properties(${TS}
5656
PROPERTIES OUTPUT_LOCATION ${PROJECT_SOURCE_DIR}/src/translations)
5757

58-
qt5_create_translation(QM ${SRCS} ${TS})
58+
if (NOT (${CMAKE_BUILD_TYPE} MATCHES "Debug"))
59+
qt5_create_translation(QM ${SRCS} ${TS})
60+
endif ()
5961
# ~
6062

6163
add_executable(${CMD_NAME} ${SRCS} ${RCS} ${QM})

0 commit comments

Comments
 (0)