summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Golubev <fatzer2@gmail.com>2025-08-20 11:48:10 +0300
committerAlexander Golubev <fatzer2@gmail.com>2025-08-21 14:07:20 +0300
commitf5912310449571869d5830bad220bb2b4298bfd8 (patch)
treef8ad98f5a584547b8dcef48d581682a7b0fbd6d6
parentae6631f32008e602cf9097329bd57c7b7cbfe914 (diff)
downloadkbarcode-f5912310.tar.gz
kbarcode-f5912310.zip
Avoid linking with kjs if javascript support is dissabled
Signed-off-by: Alexander Golubev <fatzer2@gmail.com> (cherry picked from commit 87107616b88b2b14f31806e1e77abf458a8875b8)
-rw-r--r--kbarcode/CMakeLists.txt5
1 files changed, 4 insertions, 1 deletions
diff --git a/kbarcode/CMakeLists.txt b/kbarcode/CMakeLists.txt
index 4ba06a1..be08786 100644
--- a/kbarcode/CMakeLists.txt
+++ b/kbarcode/CMakeLists.txt
@@ -14,6 +14,9 @@ link_directories(
${TDE_LIB_DIR}
)
+if( WITH_JAVASCRIPT )
+ set( KJS_LIBRARIES kjs-shared )
+endif( )
##### kbarcode (executable)
@@ -56,7 +59,7 @@ tde_add_executable( ${PROJECT_NAME} AUTOMOC
tdeio-shared
tdeprint-shared
tdeabc-shared
- kjs-shared
+ ${KJS_LIBRARIES}
${PCRE2_LIBRARIES}
DESTINATION ${BIN_INSTALL_DIR}