Out Of Source Check Doesn't Work as Intended
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, Laurie