Browse Source

Merge topic 'hip-flags-append' into release-3.22

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

Acked-by: Kitware Robot <[email protected]>
Merge-request: !6662
Brad King 4 years ago
parent
commit
b78d0392ea
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)