You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
435 B
18 lines
435 B
cmake_minimum_required (VERSION 3.28)
|
|
project(CheckLanguageHIPPlatform NONE)
|
|
include(CheckLanguage)
|
|
|
|
check_language(HIP)
|
|
|
|
if(NOT DEFINED CMAKE_HIP_COMPILER)
|
|
message(FATAL_ERROR "check_language did not set result")
|
|
endif()
|
|
|
|
if (NOT CMAKE_HIP_COMPILER)
|
|
message(FATAL_ERROR "check_language should not fail!")
|
|
endif()
|
|
|
|
if (NOT DEFINED CMAKE_HIP_PLATFORM)
|
|
message(FATAL_ERROR "check_language did not set CMAKE_HIP_PLATFORM!")
|
|
endif()
|