Skip to content
This repository has been archived by the owner on Jun 13, 2024. It is now read-only.

Commit

Permalink
Fix several issues with spaces in paths
Browse files Browse the repository at this point in the history
Currently several scripts will fail due to paths containing spaces.
Fix is to enclose paths with double quotes.
  • Loading branch information
sasagalic-MSFT committed Mar 18, 2016
1 parent adc4f0c commit ebcd91a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions windows/caffe/caffe.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
<SubSystem>Console</SubSystem>
</Link>
<PostBuildEvent>
<Command>$(ScriptsDir)\FixGFlagsNaming.cmd "$(OutDir)" $(Configuration)</Command>
<Command>"$(ScriptsDir)\FixGFlagsNaming.cmd" "$(OutDir)" $(Configuration)</Command>
</PostBuildEvent>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
Expand All @@ -54,7 +54,7 @@
<SubSystem>Console</SubSystem>
</Link>
<PostBuildEvent>
<Command>$(ScriptsDir)\FixGFlagsNaming.cmd "$(OutDir)" $(Configuration)</Command>
<Command>"$(ScriptsDir)\FixGFlagsNaming.cmd" "$(OutDir)" $(Configuration)</Command>
</PostBuildEvent>
</ItemDefinitionGroup>
<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion windows/scripts/BinplaceCudaDependencies.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ if %IS_CPU_ONLY_BUILD% == true (
if %USE_CUDNN% == true (
echo BinplaceCudaDependencies : Copy cudnn*.dll to output.

if [%CUDNN_PATH%] == [] (
if "%CUDNN_PATH%" == "" (
copy /y "%CUDA_TOOLKIT_BIN_DIR%\cudnn*.dll" "%OUTPUT_DIR%"
) else (
copy /y "%CUDNN_PATH%\cuda\bin\cudnn*.dll" "%OUTPUT_DIR%"
Expand Down

0 comments on commit ebcd91a

Please sign in to comment.