From 8741e9ea27ae41c6726155a4cea02913f6776cfa Mon Sep 17 00:00:00 2001 From: Yaxun Sam Liu Date: Fri, 7 Sep 2018 15:44:40 -0400 Subject: [PATCH] Fix caffe2/CMakeLists.txt for hip-clang Without this change, there is cmake error about invalid number of arguments for set_target_properties --- caffe2/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/caffe2/CMakeLists.txt b/caffe2/CMakeLists.txt index 7c1a84cc19c687..f5a3d5ea084f13 100644 --- a/caffe2/CMakeLists.txt +++ b/caffe2/CMakeLists.txt @@ -375,7 +375,7 @@ if(USE_ROCM) hip_add_library(caffe2_hip ${Caffe2_HIP_SRCS}) # Since PyTorch files contain HIP headers, these flags are required for the necessary definitions to be added. - set_target_properties(caffe2_hip PROPERTIES COMPILE_FLAGS ${HIP_HIPCC_FLAGS}) + set_target_properties(caffe2_hip PROPERTIES COMPILE_FLAGS "${HIP_HIPCC_FLAGS}") target_link_libraries(caffe2_hip PUBLIC caffe2) target_link_libraries(caffe2_hip PUBLIC ${Caffe2_HIP_DEPENDENCY_LIBS})