GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » Bugs, Fixes, Releases » Cmake end with an error message.
Re: Cmake end with an error message. [message #5538 is a reply to message #5537] Fri, 30 November 2007 12:49 Go to previous messageGo to previous message
Anonymous Poster From: *ikp.kfa-juelich.de
Hi Florian,

Florian Uhlig wrote on Fri, 30 November 2007 09:07

Hi Andrey

That you already come up with a solution for the UNIQUE macro
saves me a lot of work. Thanks for that.



You are always welcome. Wink

Quote:



Your second suggestion is not needed.

The SET commando

SET (PATH ${ROOTSYS}/bin ${PATH})

adds ${ROOTSYS}/bin to the already existing $PATH. The PATH is not the environment variable which seperates the entries with a ":", but an internal list in cmake



I see the problem. If you are in the GSI environment your path is defined like this:
    IF(DEFINED ENV{PATH})
      CLEAN_PATH_LIST("$ENV{PATH}" "${KEYWORDS}" PATH)
    ENDIF(DEFINED ENV{PATH})

where PATH variable really contains the list of the all entries in the $ENV{PATH}. But if you are outside of the GSI the PATH variable is defined slightly different, namely:
  ELSE(GSI)
    MESSAGE("-- You're not using the GSI installation of the external packages.")
    MESSAGE("-- If any problems occur this can be due to the fact that the macros")
    MESSAGE("-- were mostly tested at GSI. If you find any problems please contact")
    MESSAGE("-- f.uhlig@gsi.de")
    SET(PATH $ENV{PATH})
    #MESSAGE("PATH: ${PATH}")
  ENDIF(GSI)


As you see now the PATH variable just contains the content of the $ENV{PATH}. Please put the both methods into correspondence.

By the way, the macro CLEAN_PATH_LIST already contains the cast of UNIQUE macro, so you shouldn't do this second time in the WriteConfigFile.cmake

Best regards,



Andrey

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: simulation does not work with G4 for ROOT files with geometry
Next Topic: Bug in Drc
Goto Forum:
  


Current Time: Thu Mar 28 13:09:43 CET 2024

Total time taken to generate the page: 0.01230 seconds