summaryrefslogtreecommitdiff
path: root/cmake/test.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/test.cmake')
-rw-r--r--cmake/test.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/cmake/test.cmake b/cmake/test.cmake
index 183263c5a9..d6a2565979 100644
--- a/cmake/test.cmake
+++ b/cmake/test.cmake
@@ -8,6 +8,11 @@ else()
)
endif()
+
+if(NOT WITH_NODEJS)
+ target_compile_definitions(mbgl-test PRIVATE "-DTEST_HAS_SERVER=0")
+endif()
+
set_source_files_properties(test/src/mbgl/test/util.cpp PROPERTIES COMPILE_FLAGS -DNODE_EXECUTABLE="${NodeJS_EXECUTABLE}")
target_include_directories(mbgl-test