Issue when SimGRID is detected with pkg-config
Environment: node miriel on plafrim with the following modules
build/ac269-am114-lt246-m41417 compiler/gcc/8.2.0 mpi/openmpi/4.0.1 hardware/hwloc build/cmake trace/fxt tools/boost/1.71.0 perftools/simgrid
and StarPU compiled with --enable-simgrid
Problem: when SimGRID is detected with pkg-config, the variable SIMGRID_INCLUDE_DIRS is not set, and cmake fails with
CMake Error in /home/furmento/lustre/starpu/plafrim-master-plafrim-morse-miriel-simgrid-mpi_master_HEAD_dgemm_mpi_sim/plafrim-master-plafrim-morse-miriel-simgrid-mpi/morse/master/build/CMakeFiles/CMakeTmp/CMakeLists.txt: Imported target "MPI::MPI_C" includes non-existent path
"/smpi"
in its INTERFACE_INCLUDE_DIRECTORIES. Possible reasons include:
this is (i guess) due to the line
list(APPEND MPI_C_INCLUDE_PATH "${SIMGRID_INCLUDE_DIRS}/smpi")
this can be fixed by setting -DMPI_C_INCLUDE_PATH=$SIMGRID_HOME/include/smpi when calling cmake.
but it would be better not to have to use this fix.
there is a similar problem with c++ and the fix -DMPI_CXX_INCLUDE_PATH=$SIMGRID_HOME/include/smpi
Thanks!