aboutsummaryrefslogtreecommitdiff
path: root/cube/macOS
diff options
context:
space:
mode:
authorJuan Ramos <juan@lunarg.com>2023-10-10 15:30:07 -0600
committerJuan Ramos <114601453+juan-lunarg@users.noreply.github.com>2023-10-10 16:34:17 -0600
commit72291571c8e569cbcd5d924e0b1ad24cdefa4442 (patch)
tree660bab896d025f7036699d64f0d8cf8764986bc9 /cube/macOS
parent09d1b5ed777d8f89bbe7bbe72a65a54a868689db (diff)
downloadusermoji-72291571c8e569cbcd5d924e0b1ad24cdefa4442.tar.xz
cmake: vkcube/vulkaninfo successfully compile for Android
Diffstat (limited to 'cube/macOS')
-rw-r--r--cube/macOS/cube/cube.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/cube/macOS/cube/cube.cmake b/cube/macOS/cube/cube.cmake
index 15a56849..a3c5624e 100644
--- a/cube/macOS/cube/cube.cmake
+++ b/cube/macOS/cube/cube.cmake
@@ -57,6 +57,9 @@ target_include_directories(vkcube PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} ${MOLTENVK
# We do this so vulkaninfo is linked to an individual library and NOT a framework.
target_link_libraries(vkcube Vulkan::Loader "-framework Cocoa -framework QuartzCore")
+# Disable warnings about sprintf
+target_compile_options(vkcube PRIVATE -Wno-deprecated-declarations)
+
set_target_properties(vkcube PROPERTIES MACOSX_BUNDLE_INFO_PLIST ${CMAKE_CURRENT_SOURCE_DIR}/macOS/cube/Info.plist)
# The RESOURCE target property cannot be used in conjunction with the MACOSX_PACKAGE_LOCATION property. We need fine-grained