View | Details | Raw Unified | Return to problem 2221 | Differences between
and this patch

Collapse All | Expand All

(-)geant4.10.06/cmake/Modules/G4ConfigureGNUMakeHelpers.cmake (-3 / +3 lines)
Lines 284-290 Link Here
284
    # Have to make this section verbatim to get correct formatting
284
    # Have to make this section verbatim to get correct formatting
285
    set(${TEMPLATE_NAME}
285
    set(${TEMPLATE_NAME}
286
      "
286
      "
287
if test \"x\$${VARIABLE_NAME}\" = \"x\" ; then
287
if [ -z \"\$\{${VARIABLE_NAME}+\}\" ] ; then
288
  export ${VARIABLE_NAME}=${VARIABLE_VALUE}
288
  export ${VARIABLE_NAME}=${VARIABLE_VALUE}
289
fi
289
fi
290
"
290
"
Lines 317-323 Link Here
317
    # We have to make this section verbatim
317
    # We have to make this section verbatim
318
    set(${TEMPLATE_NAME}
318
    set(${TEMPLATE_NAME}
319
    "
319
    "
320
if test \"x\$${PATH_VARIABLE}\" = \"x\" ; then
320
if [ -z \"\$\{${PATH_VARIABLE}+\}\" ] ; then
321
  export ${PATH_VARIABLE}=${APPEND_VARIABLE}
321
  export ${PATH_VARIABLE}=${APPEND_VARIABLE}
322
else
322
else
323
  export ${PATH_VARIABLE}=${APPEND_VARIABLE}:\${${PATH_VARIABLE}}
323
  export ${PATH_VARIABLE}=${APPEND_VARIABLE}:\${${PATH_VARIABLE}}
Lines 354-360 Link Here
354
    # We have to make this section verbatim
354
    # We have to make this section verbatim
355
    set(${TEMPLATE_NAME}
355
    set(${TEMPLATE_NAME}
356
    "
356
    "
357
if test \"x\$${PATH_VARIABLE}\" = \"x\" ; then
357
if [ -z \"\$\{${PATH_VARIABLE}+\}\" ] ; then
358
  export ${PATH_VARIABLE}=${APPEND_VARIABLE}
358
  export ${PATH_VARIABLE}=${APPEND_VARIABLE}
359
else
359
else
360
  export ${PATH_VARIABLE}=\${${PATH_VARIABLE}}:${APPEND_VARIABLE}
360
  export ${PATH_VARIABLE}=\${${PATH_VARIABLE}}:${APPEND_VARIABLE}

Return to problem 2221