diff options
author | Brad King <brad.king@kitware.com> | 2023-09-25 15:37:03 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2023-09-25 20:06:36 (GMT) |
commit | 2a606636706fb9000b7c199b3d1592c40ed15ed1 (patch) | |
tree | 071ece8c001c76da9744c953dc6c9267e4f9527b /Modules | |
parent | 8124950f6ca7d5f5157e48bf3e881115c23bb224 (diff) | |
download | CMake-2a606636706fb9000b7c199b3d1592c40ed15ed1.zip CMake-2a606636706fb9000b7c199b3d1592c40ed15ed1.tar.gz CMake-2a606636706fb9000b7c199b3d1592c40ed15ed1.tar.bz2 |
HIP: Simplify CMAKE_GENERATOR references for determining compiler
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/CMakeDetermineHIPCompiler.cmake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/CMakeDetermineHIPCompiler.cmake b/Modules/CMakeDetermineHIPCompiler.cmake index 21322f1..28a4f1d 100644 --- a/Modules/CMakeDetermineHIPCompiler.cmake +++ b/Modules/CMakeDetermineHIPCompiler.cmake @@ -5,8 +5,8 @@ include(${CMAKE_ROOT}/Modules/CMakeDetermineCompiler.cmake) include(${CMAKE_ROOT}/Modules/CMakeParseImplicitLinkInfo.cmake) include(${CMAKE_ROOT}/Modules/CMakeParseLibraryArchitecture.cmake) -if( NOT ( ("${CMAKE_GENERATOR}" MATCHES "Make") OR - ("${CMAKE_GENERATOR}" MATCHES "Ninja") ) ) +if(NOT ((CMAKE_GENERATOR MATCHES "Make") OR + (CMAKE_GENERATOR MATCHES "Ninja"))) message(FATAL_ERROR "HIP language not currently supported by \"${CMAKE_GENERATOR}\" generator") endif() |