summaryrefslogtreecommitdiff
path: root/cmake/glfw.cmake
diff options
context:
space:
mode:
authorBruno de Oliveira Abinader <bruno@mapbox.com>2016-07-21 12:48:46 +0300
committerKonstantin Käfer <mail@kkaefer.com>2016-08-05 11:42:22 +0200
commit57bed88b03e87344712800f8fbe796f81a00fc16 (patch)
tree288c530d6d34417b346df7ce2be14b2b4ea3bf87 /cmake/glfw.cmake
parent0fb3b6e333901df313d404ab7507cbb4fa6baf09 (diff)
downloadqtlocation-mapboxgl-57bed88b03e87344712800f8fbe796f81a00fc16.tar.gz
[build] Copy 'ca-bundle.crt' for mbgl-glfw target
Diffstat (limited to 'cmake/glfw.cmake')
-rw-r--r--cmake/glfw.cmake7
1 files changed, 7 insertions, 0 deletions
diff --git a/cmake/glfw.cmake b/cmake/glfw.cmake
index 67eac0934d..c356feea5a 100644
--- a/cmake/glfw.cmake
+++ b/cmake/glfw.cmake
@@ -22,6 +22,13 @@ target_link_libraries(mbgl-glfw
PRIVATE mbgl-core
)
+add_custom_command(
+ TARGET mbgl-glfw POST_BUILD
+ COMMAND ${CMAKE_COMMAND} -E copy
+ ${CMAKE_SOURCE_DIR}/common/ca-bundle.crt
+ ${CMAKE_CURRENT_BINARY_DIR}/ca-bundle.crt
+)
+
target_add_mason_package(mbgl-glfw PRIVATE glfw)
mbgl_platform_glfw()