Message: Getting Xerces dir used by Geant4 into my CMakeLists.txt Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Getting Xerces dir used by Geant4 into my CMakeLists.txt 

Forum: Installation and Configuration
Date: 18 Oct, 2016
From: Jeremy McCormick <Jeremy McCormick>

Hi,

Is it possible within my own CMakeLists.txt file to get the setting of XERCESC_ROOT_DIR that was used by Geant4 when it was built?

I basically want to generate a setup script using a configured setup.sh.in script so I would like to get this directory in order to add the Xerces lib dir to the LD_LIBRARY_PATH.

I see that the Xerces include dir is accessible in the string produced from:

./geant4-config --cflags

But I'm wondering if this variable is directly available in some way so that I can avoid parsing this output to get the Xerces base dir.

Thanks.

--Jeremy

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 Note: Re: Getting Xerces dir used by Geant4 into my CMakeLists.txt   (Ben Morgan - 25 Oct, 2016)
(_ None: Re: Getting Xerces dir used by Geant4 into my CMakeLists.txt   (Jeremy McCormick - 25 Oct, 2016)
(_ None: Re: Getting Xerces dir used by Geant4 into my CMakeLists.txt   (Ben Morgan - 26 Oct, 2016)
(_ None: Re: Getting Xerces dir used by Geant4 into my CMakeLists.txt   (Jeremy McCormick - 03 Nov, 2016)
 Add Message Add Message
to: "Getting Xerces dir used by Geant4 into my CMakeLists.txt"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]