mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
properly set default value of CMAKE_BUILD_TYPE
Simple set() is not enough because this variable is created with empty value after cmake starts. We have to force setting value and store in cache. Change-Id: I0d018ebe3a9a0a65f6fae5313853857913d84bf7
This commit is contained in:
@ -33,7 +33,8 @@ if(TR_DEPRECATED)
|
||||
endif(TR_DEPRECATED)
|
||||
|
||||
if(NOT CMAKE_BUILD_TYPE)
|
||||
set(CMAKE_BUILD_TYPE Release CACHE STRING "Build type: [Release, ReleaseInternal, Debug]")
|
||||
message(STATUS "CMAKE_BUILD_TYPE not specified, using Release")
|
||||
set(CMAKE_BUILD_TYPE "Release" CACHE STRING "Build type: [Release, ReleaseInternal, Debug]" FORCE)
|
||||
endif()
|
||||
|
||||
set(CMAKE_C_FLAGS_RELEASEINTERNAL ${CMAKE_C_FLAGS_RELEASE})
|
||||
|
Reference in New Issue
Block a user