Clean up mpi.h inclusion on Windows
[charm.git] / src / arch / mpi-win64 / conv-mach.sh
blob060ff9bc5fd58559480bb9f8c1e2a8f5478541b6
2 CMK_CPP_CHARM="cpp -P"
3 CMK_CPP_C_FLAGS="$CMK_CC_FLAGS -E"
5 CMK_CF77="f77"
6 CMK_CF90="f90"
8 CMK_XIOPTS=""
9 CMK_F90LIBS="-lvast90 -lg2c"
11 CMK_POST_EXE=".exe"
12 CMK_QT="none"
14 . $CHARMINC/cc-msvc.sh
16 MSMPI_SUFFIX_LIB='\amd64'
17 MSMPI_SUFFIX_INC=''
19 if test -n "$CCP_LIB64"
20 then
21 HPC_SDK="$CCP_LIB64\..\.."
22 elif test -d "c:\Program Files (x86)\Microsoft SDKs\MPI"
23 then
24 HPC_SDK="c:\Program Files (x86)\Microsoft SDKs\MPI"
25 MSMPI_SUFFIX_LIB="\x64"
26 MSMPI_SUFFIX_INC="\x64"
27 else
28 HPC_SDK="c:\Program Files\Microsoft MPI"
30 HPC_SDK=`cygpath -d "$HPC_SDK"`
32 MSMPI_INCLUDE="-I `cygpath -u "$HPC_SDK\Include"`"
33 if test -n "MSMPI_SUFFIX_INC"
34 then
35 MSMPI_INCLUDE="-I `cygpath -u "$HPC_SDK\Include$MSMPI_SUFFIX_INC"` $MSMPI_INCLUDE"
38 CMK_SYSINC="$MSMPI_INCLUDE"
40 CMK_MPI_LIB="-L `cygpath -u "$HPC_SDK\Lib$MSMPI_SUFFIX_LIB"` -lmsmpi"