summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2023-09-25 15:37:03 (GMT)
committerBrad King <brad.king@kitware.com>2023-09-25 20:06:36 (GMT)
commit2a606636706fb9000b7c199b3d1592c40ed15ed1 (patch)
tree071ece8c001c76da9744c953dc6c9267e4f9527b /Modules
parent8124950f6ca7d5f5157e48bf3e881115c23bb224 (diff)
downloadCMake-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.cmake4
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()