SWDEV-401902 - Set default CMAKE_BUILD_TYPE in the top level CMakeLists.txt
Change-Id: I3a3e24da2dc7eec5feb1f748ea49af3df40d4cd9
[ROCm/clr commit: f945adf0bd]
This commit is contained in:
@@ -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
|
||||
#############
|
||||
|
||||
@@ -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 ()
|
||||
|
||||
Reference in New Issue
Block a user