File tree 3 files changed +9
-3
lines changed
3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ SET(OFBUILD_CUSTOM_CMAKE_VERSION "${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}.
23
23
SET (OPENFLUID_VERSION_MAJOR 2)
24
24
SET (OPENFLUID_VERSION_MINOR 2)
25
25
SET (OPENFLUID_VERSION_PATCH 0)
26
- SET (OPENFLUID_VERSION_STATUS "beta3 " ) # example: SET(OPENFLUID_VERSION_STATUS "rc1")
26
+ SET (OPENFLUID_VERSION_STATUS "beta4 " ) # example: SET(OPENFLUID_VERSION_STATUS "rc1")
27
27
28
28
SET (OPENFLUID_VERSION_FULL "${OPENFLUID_VERSION_MAJOR} .${OPENFLUID_VERSION_MINOR} .${OPENFLUID_VERSION_PATCH} " )
29
29
Original file line number Diff line number Diff line change @@ -312,7 +312,7 @@ void SpatialDomainDescriptor::addUnit(const openfluid::fluidx::SpatialUnitDescri
312
312
{
313
313
throw openfluid::base::FrameworkException (OPENFLUID_CODE_LOCATION,
314
314
" unable to add spatial unit " +
315
- openfluid::tools::classIDToString (ClassName,ID) + " that already exists" );
315
+ openfluid::tools::classIDToString (ClassName,ID) + " that already exists" );
316
316
}
317
317
318
318
auto itInserted = (m_SpatialUnits[ClassName].insert (std::make_pair (ID, UnitDesc))).first ;
Original file line number Diff line number Diff line change @@ -169,7 +169,13 @@ bool Process::run()
169
169
{
170
170
WorkDir = m_Cmd.WorkDir ;
171
171
}
172
- boost::process::child BPC (boost::process::exe = m_Cmd.Program ,
172
+ std::string Program = m_Cmd.Program ;
173
+ // Process with space must be surrounded by quotes (works for windows and linux)
174
+ if ((Program.find (' ' ) != std::string::npos) && (Program[0 ] != ' "' ))
175
+ {
176
+ Program = " \" " +Program+" \" " ;
177
+ }
178
+ boost::process::child BPC (boost::process::exe = Program,
173
179
boost::process::args = m_Cmd.Args ,
174
180
boost::process::start_dir = WorkDir,
175
181
boost::process::std_out > StdOutStr, boost::process::std_err > StdErrStr,
You can’t perform that action at this time.
0 commit comments