Closed kirienko closed 3 years ago
@JunCEEE
Hi @kirienko, I just noticed that if CrystFEL is not installed, the CMake process to install CrystFEL by SIMEX cannot get started because of the following error:
-- ***** Including module CrystFELPhotonDiffractor from: Diffractors/CrystFELPhotonDiffractor ****
CMake Error at Modules/Diffractors/CrystFELPhotonDiffractor/CMakeLists.txt:1 (find_program):
Could not find HAVE_CRYSTFEL using the following names: hdfsee
Could we check the installation of CrystFEL without throwing the error?
The purpose of this change is to check if
CrystFEL
software package is already installed. In this case theSimEx
installer will just safely skip this step. This may save user from the confusion thatcrystfel
is installed butSimEx
not only fails to recognize that fact but also fails to [re]install on its own.make
looks for thehdfsee
command and if it is in the$PATH
it understandscrystfel
is installed. I admit that there might be a better way to check. I'll be delighted to see one.Close #238