From babff0ff73dbddd3d47ddaaaa16d32b418685699 Mon Sep 17 00:00:00 2001 From: Ioannis Assiouras Date: Tue, 23 May 2023 10:15:02 +0100 Subject: [PATCH] SWDEV-401902 - Set default CMAKE_BUILD_TYPE in the top level CMakeLists.txt Change-Id: I3a3e24da2dc7eec5feb1f748ea49af3df40d4cd9 [ROCm/clr commit: f945adf0bd4e018050f0f86683f6764ddaa50a37] --- projects/clr/CMakeLists.txt | 5 +++++ projects/clr/hipamd/CMakeLists.txt | 5 ----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/projects/clr/CMakeLists.txt b/projects/clr/CMakeLists.txt index 23029a3845..67037c4baa 100644 --- a/projects/clr/CMakeLists.txt +++ b/projects/clr/CMakeLists.txt @@ -27,6 +27,11 @@ cmake_minimum_required(VERSION 3.16.8) option(CLR_BUILD_HIP "Build HIP" OFF) option(CLR_BUILD_OCL "Build OCL" OFF) +# Set default build type +if(NOT CMAKE_BUILD_TYPE) + set(CMAKE_BUILD_TYPE "Release") +endif() + ############# # Build steps ############# diff --git a/projects/clr/hipamd/CMakeLists.txt b/projects/clr/hipamd/CMakeLists.txt index 9e4ce96e14..ecf5944e2f 100755 --- a/projects/clr/hipamd/CMakeLists.txt +++ b/projects/clr/hipamd/CMakeLists.txt @@ -227,11 +227,6 @@ message(STATUS "HIP Compiler: " ${HIP_COMPILER}) add_to_config(_buildInfo HIP_RUNTIME) add_to_config(_buildInfo HIP_COMPILER) -# Set default build type -if(NOT CMAKE_BUILD_TYPE) - set(CMAKE_BUILD_TYPE "Release") -endif() - if (NOT DEFINED ROCM_PATH ) set ( ROCM_PATH "/opt/rocm" CACHE STRING "Default ROCM installation directory." ) endif ()