pineapple-src/externals/vcpkg/ports/caffe2/fix-space.patch

14 lines
648 B
Diff
Raw Normal View History

2022-07-23 01:01:36 +00:00
diff --git a/cmake/Utils.cmake b/cmake/Utils.cmake
index e082298..25186e4 100644
--- a/cmake/Utils.cmake
+++ b/cmake/Utils.cmake
@@ -386,7 +386,7 @@ function(caffe_add_whole_archive_flag lib output_var)
set(${output_var} -Wl,-force_load,$<TARGET_FILE:${lib}> PARENT_SCOPE)
elseif(MSVC)
# In MSVC, we will add whole archive in default.
- set(${output_var} -WHOLEARCHIVE:$<TARGET_FILE:${lib}> PARENT_SCOPE)
+ set(${output_var} -WHOLEARCHIVE:"$<TARGET_FILE:${lib}>" PARENT_SCOPE)
else()
# Assume everything else is like gcc
set(${output_var} -Wl,--whole-archive ${lib} -Wl,--no-whole-archive PARENT_SCOPE)