build: fix travis MPI/SMP build
[charm.git] / src / arch / mpi-win64 / conv-mach.sh
blob895810f93c6f8c7d28cab32a37f5bdbcb0f596f6
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 HPC_SDK_INCLUDE="$HPC_SDK\Inc"
33 if ! test -d "$HPC_SDK_INCLUDE"
34 then
35 HPC_SDK_INCLUDE="$HPC_SDK\Include"
37 MSMPI_INCLUDE="-I `cygpath -u "$HPC_SDK_INCLUDE"`"
38 if test -n "MSMPI_SUFFIX_INC"
39 then
40 MSMPI_INCLUDE="-I `cygpath -u "$HPC_SDK_INCLUDE$MSMPI_SUFFIX_INC"` $MSMPI_INCLUDE"
43 CMK_SYSINC="$MSMPI_INCLUDE"
45 CMK_MPI_LIB="-L `cygpath -u "$HPC_SDK\Lib$MSMPI_SUFFIX_LIB"` -lmsmpi"