summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-10-26 14:47:58 (GMT)
committerBrad King <brad.king@kitware.com>2021-10-26 14:48:48 (GMT)
commit3d0e2775a554f33d4d0583f232d33057a4d8076c (patch)
tree79948f1cd0633685066d87242c538b8db2b8722f
parentfb6ab54076217452e673ad310faba2a1a993366f (diff)
downloadCMake-3d0e2775a554f33d4d0583f232d33057a4d8076c.zip
CMake-3d0e2775a554f33d4d0583f232d33057a4d8076c.tar.gz
CMake-3d0e2775a554f33d4d0583f232d33057a4d8076c.tar.bz2
HIP: Add missing space when appending --cuda-host-only
Fixes: #22805
-rw-r--r--Modules/CMakeTestHIPCompiler.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/CMakeTestHIPCompiler.cmake b/Modules/CMakeTestHIPCompiler.cmake
index 5acd806..ecbfa7f 100644
--- a/Modules/CMakeTestHIPCompiler.cmake
+++ b/Modules/CMakeTestHIPCompiler.cmake
@@ -10,7 +10,7 @@ if(CMAKE_HIP_COMPILER_FORCED)
endif()
set(__CMAKE_HIP_FLAGS "${CMAKE_HIP_FLAGS}")
-string(APPEND CMAKE_HIP_FLAGS "--cuda-host-only")
+string(APPEND CMAKE_HIP_FLAGS " --cuda-host-only")
include(CMakeTestCompilerCommon)