cea-hpc / wi4mpi

Wrapper interface for MPI
BSD 3-Clause "New" or "Revised" License
80 stars 15 forks source link

Check presence of CC/CXX/FC compilers #32

Closed adrien-cotte closed 2 years ago

adrien-cotte commented 2 years ago

Since MPI requirement was removed, there is no mechanism to check the presence of compilers.

$ cmake -DWI4MPI_COMPILER=intel ..
[...]
-- Configuring done
-- Generating done
$ make
[...]
make: *** [all] Error 2
$ icc
icc: command not found

After this patch, configuration releases an error :

$ cmake -DWI4MPI_COMPILER=intel ..
[...]
CMake Error at CMakeLists.txt:116 (message):
  C compiler not found in PATH!

      Current value of CC is: 

-- Configuring incomplete, errors occurred!
[...]
adrien-cotte commented 2 years ago

Fix https://github.com/cea-hpc/wi4mpi/issues/31 too.