summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake')
-rw-r--r--cmake/test.cmake6
1 files changed, 6 insertions, 0 deletions
diff --git a/cmake/test.cmake b/cmake/test.cmake
index 2a83a633c0..c4d9dd9fad 100644
--- a/cmake/test.cmake
+++ b/cmake/test.cmake
@@ -16,6 +16,12 @@ target_include_directories(mbgl-test
PRIVATE platform/default
)
+if(DEFINED ENV{CI})
+ target_compile_definitions(mbgl-test
+ PRIVATE -DCI_BUILD=1
+ )
+endif()
+
target_link_libraries(mbgl-test
PRIVATE mbgl-core
)