diff --git a/src/BuildTiles/Main/tgconstruct_output.cxx b/src/BuildTiles/Main/tgconstruct_output.cxx index 8993a197..972e8285 100644 --- a/src/BuildTiles/Main/tgconstruct_output.cxx +++ b/src/BuildTiles/Main/tgconstruct_output.cxx @@ -102,7 +102,7 @@ void TGConstruct::AddCustomObjects( void ) { string command = "copy /Y " + basecom + " " + dest_dir; #else string basecom = srcbase.utf8Str(); - string command = "cp " + basecom + " " + dest_dir; + string command = "cp \"" + basecom + "\" \"" + dest_dir + "\""; #endif SG_LOG( SG_GENERAL, SG_DEBUG, "running " << command );