summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2019-03-13 18:35:29 +0100
committerKonstantin Käfer <mail@kkaefer.com>2019-03-13 20:42:30 +0100
commit979433eddb5a8f2180aba134befb08b222718bc8 (patch)
treea307962a9105152514b6ab37f98818b6d4431204 /cmake
parente9805b60ee77fcb91dcaac89c09290d185d072bd (diff)
downloadqtlocation-mapboxgl-979433eddb5a8f2180aba134befb08b222718bc8.tar.gz
[build] update Boost to 1.69 and remove RTTI
Diffstat (limited to 'cmake')
-rw-r--r--cmake/glfw.cmake3
-rw-r--r--cmake/offline.cmake3
-rw-r--r--cmake/render.cmake3
3 files changed, 9 insertions, 0 deletions
diff --git a/cmake/glfw.cmake b/cmake/glfw.cmake
index b87ba74caf..a2adb9fbb5 100644
--- a/cmake/glfw.cmake
+++ b/cmake/glfw.cmake
@@ -2,6 +2,9 @@ add_executable(mbgl-glfw
platform/glfw/main.cpp
)
+# args requires RTTI
+set_source_files_properties(platform/glfw/main.cpp PROPERTIES COMPILE_OPTIONS "-frtti")
+
target_sources(mbgl-glfw
PRIVATE platform/glfw/glfw_view.hpp
PRIVATE platform/glfw/glfw_view.cpp
diff --git a/cmake/offline.cmake b/cmake/offline.cmake
index 9f7261cd6c..b751125297 100644
--- a/cmake/offline.cmake
+++ b/cmake/offline.cmake
@@ -2,6 +2,9 @@ add_executable(mbgl-offline
bin/offline.cpp
)
+# args requires RTTI
+set_source_files_properties(bin/offline.cpp PROPERTIES COMPILE_OPTIONS "-frtti")
+
target_sources(mbgl-offline
PRIVATE platform/default/include/mbgl/util/default_styles.hpp
)
diff --git a/cmake/render.cmake b/cmake/render.cmake
index 9a67a2a25e..776c859bad 100644
--- a/cmake/render.cmake
+++ b/cmake/render.cmake
@@ -2,6 +2,9 @@ add_executable(mbgl-render
bin/render.cpp
)
+# args requires RTTI
+set_source_files_properties(bin/render.cpp PROPERTIES COMPILE_OPTIONS "-frtti")
+
target_include_directories(mbgl-render
PRIVATE platform/default/include
)