diff options
author | Matt Turner <mattst88@gmail.com> | 2022-06-21 00:08:57 -0400 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2022-06-21 00:14:46 -0400 |
commit | c9b1f19c486b6ec590441b9c46965ab961d2677d (patch) | |
tree | ce86a7b4ab8c2bd838455344695f990a2220a077 | |
parent | caccaf28e3df6ea612d2d4b39f781c4324019fdb (diff) | |
download | libproxy-git-c9b1f19c486b6ec590441b9c46965ab961d2677d.tar.gz |
Fix building without duktape
Otherwise configuring fails with
CMake Error at libproxy/cmake/modules.cmk:26 (math):
math cannot parse the expression: "0+0+0+": syntax error, unexpected end of
file (6).
Call Stack (most recent call first):
libproxy/CMakeLists.txt:14 (include)
-rw-r--r-- | libproxy/cmake/modules/pacrunner_duktape.cmk | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libproxy/cmake/modules/pacrunner_duktape.cmk b/libproxy/cmake/modules/pacrunner_duktape.cmk index e7918a8..a468125 100644 --- a/libproxy/cmake/modules/pacrunner_duktape.cmk +++ b/libproxy/cmake/modules/pacrunner_duktape.cmk @@ -17,5 +17,7 @@ else() link_directories(${DUKTAPE_LIBRARIES}) link_libraries(duktape) endif() + else() + set(DUKTAPE_FOUND 0) endif() endif() |