From 834ae9b529bba2f0219b1c6e170b8f3677259e9b Mon Sep 17 00:00:00 2001 From: Daniil Efremov Date: Mon, 6 Feb 2017 12:14:14 +0700 Subject: [PATCH] Mali GPU does not support host unified memory in fact #53 - missed changes to CMakeLists.txt for original issue --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9888cca3959..fd01737383e 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -124,6 +124,10 @@ endif() include(cmake/Dependencies.cmake) # ---[ Flags +if(DISABLE_DEVICE_HOST_UNIFIED_MEMORY) + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DDISABLE_DEVICE_HOST_UNIFIED_MEMORY") +endif() + if(UNIX OR APPLE) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC -Wall -std=c++11 -DCMAKE_BUILD") endif()