CLHEP issueshttps://gitlab.cern.ch/CLHEP/CLHEP/-/issues2022-06-09T20:08:46+02:00https://gitlab.cern.ch/CLHEP/CLHEP/-/issues/3Out Of Source Check Doesn't Work as Intended2022-06-09T20:08:46+02:00Laurence James NevayOut Of Source Check Doesn't Work as IntendedPlease use JIRA for CLHEP issues. -> I posted on there last year and was told to post here... so no idea which is the right place. I'll start here..
I get a wrong error message about making an in-source build. In part this is due to m...Please use JIRA for CLHEP issues. -> I posted on there last year and was told to post here... so no idea which is the right place. I'll start here..
I get a wrong error message about making an in-source build. In part this is due to my preferences, but it is a bug in the cmake.
When we download clhep from the website as a tar.gz we get
```CLHEP/2.4.5.2/<real source code>```
I move the 2.4.5.2 dir to
```clhep-2.4.5.2```
As I have other software apart from clhep and it makes sense for it be labelled including the package name. Also, I can't have multiple CLHEP directories in the same directory. I go for the the (fairly standard) cmake pattern of directories:
packagename
packagename-build
packagename-install
So I have
```
/Users/nevay/physics/packages/clhep-2.4.5.2
/Users/nevay/physics/packages/clhep-2.4.5.2-build
/Users/nevay/physics/packages/clhep-2.4.5.2-install
```
If I go to build and try to run cmake it gives me an error that I'm doing an in-source build. This is wrong. The bug is in ClhepOutOfSourceBuild.cmake. It searches for the CMAKE_SOURCE_DIR string in the CMAKE_BINARY_DIR string (or equal) and it finds it, therefore initiates the fatal error. This should be fixed.
Obviously, I can just rename my directory something different to get around this, but probably should be fixed.
Cheers,
Lauriehttps://gitlab.cern.ch/CLHEP/CLHEP/-/issues/2Installation fails2021-07-06T17:49:14+02:00Paolo BaessoInstallation failsHi,
I am following the "readme" instructions to install the code on my machine.
I checked out the code into `~/CLHEP_source/CLHEP` and would like to build into `~/CLHEP`.
All steps complete without problems, ctest shows that everything ...Hi,
I am following the "readme" instructions to install the code on my machine.
I checked out the code into `~/CLHEP_source/CLHEP` and would like to build into `~/CLHEP`.
All steps complete without problems, ctest shows that everything passed. However when I do:
`cmake --build . --target install`
I get the following error:
`-- Up-to-date: /home/phpgb/CLHEP/include/CLHEP/Geometry/Vector3D.h`
`CMake Error at Geometry/src/cmake_install.cmake:42 (file):`
` file INSTALL cannot find`
` "/home/phpgb/CLHEP/lib/libCLHEP-Geometry-2.4.1.0.so".`
`Call Stack (most recent call first):`
` Geometry/cmake_install.cmake:42 (include)`
` cmake_install.cmake:196 (include)`
Any idea about what is going wrong?