Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorVladimir Byko-Ianko <v.bykoianko@corp.mail.ru>2020-08-04 11:09:35 +0300
committerOlga Khlopkova <mesozoic.drones@gmail.com>2020-08-06 16:31:29 +0300
commit910910c7736b3240cf615979180ebc2434bc811e (patch)
tree32c7c1d682baad325bcaee2fb1795122998d781c /cmake
parent0880d4d06e4d4666f61f07bf9be3648dd240b952 (diff)
[tracking] Adding fuzz test.
Diffstat (limited to 'cmake')
-rw-r--r--cmake/OmimHelpers.cmake6
1 files changed, 6 insertions, 0 deletions
diff --git a/cmake/OmimHelpers.cmake b/cmake/OmimHelpers.cmake
index 29654f2307..40d8cff68a 100644
--- a/cmake/OmimHelpers.cmake
+++ b/cmake/OmimHelpers.cmake
@@ -44,6 +44,12 @@ function(omim_add_executable executable)
"-fno-omit-frame-pointer"
)
endif()
+ if (USE_LIBFUZZER)
+ target_link_libraries(
+ ${executable}
+ "-fsanitize=fuzzer"
+ )
+ endif()
if (USE_PPROF)
if (PLATFORM_MAC)
find_library(PPROF_LIBRARY libprofiler.dylib)