From 5584fe26e1477bc2c7bd7187299abbb0923fc1d0 Mon Sep 17 00:00:00 2001 From: "Thiago Marcos P. Santos" Date: Wed, 29 Jan 2020 17:42:38 +0200 Subject: [build] Make it possible to enable RTTI on the new buildsystem --- next/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/next/CMakeLists.txt b/next/CMakeLists.txt index 1950a1144a..95b330992b 100644 --- a/next/CMakeLists.txt +++ b/next/CMakeLists.txt @@ -22,6 +22,7 @@ option(MBGL_WITH_CORE_ONLY "Build only the core bits, no platform code" OFF) option(MBGL_WITH_COVERAGE "Enable code coverage collection" OFF) option(MBGL_WITH_QT "Build Mapbox GL Qt bindings" OFF) option(MBGL_WITH_SANITIZER "Use [address|thread|undefined] here" OFF) +option(MBGL_WITH_RTTI "Compile with runtime type information" OFF) add_library( mbgl-compiler-options INTERFACE @@ -39,7 +40,7 @@ target_compile_options( $<$:-fsanitize=implicit-conversion> $<$:-fsanitize=undefined> $<$:-fsanitize=unsigned-integer-overflow> - $<$:-fno-rtti> + $<$,$>>:-fno-rtti> $<$,$>>:-Wall> $<$,$>>:-Wshadow> $<$,$>>:-Wextra> -- cgit v1.2.1