mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-04 21:30:01 -05:00
ce9c6d0994
Fixes: #25541
18 lines
435 B
CMake
18 lines
435 B
CMake
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()
|