Problem 2485 - geant4-config: wrong -I flag
Summary: geant4-config: wrong -I flag
Status: ASSIGNED
Alias: None
Product: Geant4
Classification: Unclassified
Component: cmake (show other problems)
Version: 10.7
Hardware: All All
: P4 minor
Assignee: Ben Morgan
URL:
Depends on:
Blocks:
 
Reported: 2022-04-11 10:16 CEST by Valentin Volkl
Modified: 2022-04-25 14:20 CEST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this problem.
Description Valentin Volkl 2022-04-11 10:16:41 CEST
As reported to Key4hep by Jacek Holeczek : 

```
~$ source /cvmfs/sft.cern.ch/lcg/views/LCG_99/x86_64-centos7-gcc10-opt/setup.sh  
~$ geant4-config --cflags
-DG4INTY_USE_XT -DG4VIS_USE_OPENGL -DG4UI_USE_TCSH -DG4INTY_USE_QT -DG4UI_USE_QT -DG4VIS_USE_OPENGLQT -I/cvmfs/sft.cern.ch/lcg/releases/qt5/5.12.4-3d860/x86_64-centos7-gcc10-opt/include/ -I/cvmfs/sft.cern.ch/lcg/releases/qt5/5.12.4-3d860/x86_64-centos7-gcc10-opt/include/QtCore -I/cvmfs/sft.cern.ch/lcg/releases/qt5/5.12.4-3d860/x86_64-centos7-gcc10-opt/.//mkspecs/linux-g++ -I/cvmfs/sft.cern.ch/lcg/releases/qt5/5.12.4-3d860/x86_64-centos7-gcc10-opt/include/QtGui -I/cvmfs/sft.cern.ch/lcg/releases/qt5/5.12.4-3d860/x86_64-centos7-gcc10-opt/include/QtWidgets -I/cvmfs/sft.cern.ch/lcg/releases/qt5/5.12.4-3d860/x86_64-centos7-gcc10-opt/include/QtOpenGL -I/cvmfs/sft.cern.ch/lcg/releases/qt5/5.12.4-3d860/x86_64-centos7-gcc10-opt/include/QtPrintSupport -DG4UI_USE_XM -DG4VIS_USE_OPENGLXM -DG4VIS_USE_RAYTRACERX -DG4VIS_USE_OPENGLX -W -Wall -pedantic -Wno-non-virtual-dtor -Wno-long-long -Wwrite-strings -Wpointer-arith -Woverloaded-virtual -Wno-variadic-macros -Wshadow -pipe -pthread -ftls-model=global-dynamic -std=c++17 -I/cvmfs/sft.cern.ch/lcg/releases/Geant4/10.07-cc34e/x86_64-centos7-gcc10-opt/bin/../include/Geant4 -I/cvmfs/sft.cern.ch/lcg/releases/clhep/2.4.4.0-b903d/x86_64-centos7-gcc10-opt/include -I/cvmfs/sft.cern.ch/lcg/releases/XercesC/3.2.3-714f6/x86_64-centos7-gcc10-opt/include -I
```

(Note the -I at the end) The problem stems from the lines:


if test "x${have_usolids}" = "xyes" ; then
  cflags="${cflags}  -I "
fi

This problem is present in 10.7 up to the newest version.