From 8f53157057256ea7b915b90091a68bfcceea7470 Mon Sep 17 00:00:00 2001 From: kjayapra-amd Date: Tue, 5 May 2020 09:54:36 -0400 Subject: [PATCH] SWDEV-209747 - Add compiletime variable DEV_LOG_ENABLE Change-Id: Ie8ff8abafa6b5e0f83209da42778688a047562c3 --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) mode change 100644 => 100755 CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt old mode 100644 new mode 100755 index d208c19fb5..8048f712e1 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -204,6 +204,10 @@ if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT) endif() endif() +if(DEV_LOG_ENABLE MATCHES "yes") + add_definitions(-DDEV_LOG_ENABLE) +endif() + # Set default install path as "/opt/rocm/hip", can override the path from cmake build. set(CPACK_INSTALL_PREFIX ${HIP_DEFAULT_INSTALL_PREFIX} CACHE PATH "Package Installation path for HIP")