Disable CMAKE_INSTALL_PREFIX message for android builds

This commit is contained in:
baldurk
2017-09-19 19:43:59 +01:00
parent 8a98ba0baf
commit 6eb9969d37
+1 -1
View File
@@ -42,7 +42,7 @@ set(definitions ${RDOC_DEFINITIONS})
set(VULKAN_LAYER_FOLDER_DEFAULT /etc/vulkan/implicit_layer.d)
if(NOT CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT AND NOT DEFINED VULKAN_LAYER_FOLDER)
if(NOT ANDROID AND NOT CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT AND NOT DEFINED VULKAN_LAYER_FOLDER)
message(WARNING "*** CMAKE_INSTALL_PREFIX has been customised to ${CMAKE_INSTALL_PREFIX}, but VULKAN_LAYER_FOLDER is not customised and defaults to ${VULKAN_LAYER_FOLDER_DEFAULT}. This may not do what you expect, e.g. installing to a non-root location ***")
endif()