summaryrefslogtreecommitdiff
path: root/cmake/test.cmake
diff options
context:
space:
mode:
authorThiago Marcos P. Santos <thiago@mapbox.com>2016-08-26 16:03:09 +0300
committerThiago Marcos P. Santos <thiago@mapbox.com>2016-08-26 16:08:44 +0300
commit7a2bfe32f88fee8d6a29f9e26e1f7a293aaee810 (patch)
tree3a46da1a8c726a00a2afbd1264c5a79c294f171c /cmake/test.cmake
parent9605cac3e979f73f7d09d580cbf1087e251f1b49 (diff)
downloadqtlocation-mapboxgl-7a2bfe32f88fee8d6a29f9e26e1f7a293aaee810.tar.gz
[tests] Make it possible to disable tests on the CI
Useful for tests that depend on a good network connection and you want to run manually.
Diffstat (limited to 'cmake/test.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
)