svenreiche / Genesis-1.3-Version4

Time-dependent, 3D Code to simulate the amplification process of a Free-electron Laser.
GNU General Public License v3.0
55 stars 27 forks source link

Support of h5pcc compiler #82

Closed svenreiche closed 1 year ago

svenreiche commented 1 year ago

In the CMAKe file the piece if(EXISTS "/opt/local/bin/h5pcc") set(CMAKE_CXX_COMPILER /opt/local/bin/h5pcc) endif() overwrites the CMAKE_CXX_COMPILER for a very specific installation. This is not the problem if CMAKE is called with the -DCMAKE_CXX_COMPILER=h5pcc directive but the following code if (CMAKE_CXX_COMPILER MATCHES "/opt/local/bin/h5pcc") Message(STATUS "h5pcc compiler wrapper found - No additional libraries needed") else()

causes that only installation at the location will be use the h5pcc flags. Since MATCHES uses regular expression it should be sufficient just to use if (CMAKE_CXX_COMPILER MATCHES "h5pcc") ... to allow other installation paths for h5pcc

svenreiche commented 1 year ago

Implemented in the latest dev branch