Browse Source

HIP: Add missing space when appending --cuda-host-only

Fixes: #22805
Brad King 4 years ago
parent
commit
3d0e2775a5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Modules/CMakeTestHIPCompiler.cmake

+ 1 - 1
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)