diff --git a/cmake/Reprojucer.cmake b/cmake/Reprojucer.cmake index 3a49dbd14..bc59494ea 100644 --- a/cmake/Reprojucer.cmake +++ b/cmake/Reprojucer.cmake @@ -5652,9 +5652,9 @@ function(_FRUT_set_compiler_and_linker_settings target target_type exporter) file(TO_CMAKE_PATH "${path}" path) _FRUT_abs_path_based_on_jucer_target_project_folder(path "${path}" "${exporter}") if(MSVC) - target_link_libraries(${target} PRIVATE $<$:-LIBPATH:${path}>) + target_link_libraries(${target} PRIVATE $<$:-LIBPATH:"${path}">) else() - target_link_libraries(${target} PRIVATE $<$:-L${path}>) + target_link_libraries(${target} PRIVATE $<$:-L"${path}">) endif() endforeach()