diff --git a/CMakeLists.txt b/CMakeLists.txt index 4fac687..6eae2e0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -19,18 +19,26 @@ find_package(MKL REQUIRED) include(FortranCInterface) FortranCInterface_VERIFY() if (FortranCInterface_GLOBAL_CASE STREQUAL "UPPER") - set(F_SYMBOL "MUMPS_##upper_case##${FortranCInterface_GLOBAL_SUFFIX}") - set(F_SYM_ARITH_S "SMUMPS_##upper_case##${FortranCInterface_GLOBAL_SUFFIX}") - set(F_SYM_ARITH_D "DMUMPS_##upper_case##${FortranCInterface_GLOBAL_SUFFIX}") - set(F_SYM_ARITH_Z "ZMUMPS_##upper_case##${FortranCInterface_GLOBAL_SUFFIX}") - set(F_SYM_ARITH_C "CMUMPS_##upper_case##${FortranCInterface_GLOBAL_SUFFIX}") + set(F_SYMBOL "MUMPS_##upper_case") + set(F_SYM_ARITH_S "SMUMPS_##upper_case") + set(F_SYM_ARITH_D "DMUMPS_##upper_case") + set(F_SYM_ARITH_Z "ZMUMPS_##upper_case") + set(F_SYM_ARITH_C "CMUMPS_##upper_case") else() + set(F_SYMBOL "mumps_##lower_case") + set(F_SYM_ARITH_D "dmumps_##lower_case") + set(F_SYM_ARITH_S "smumps_##lower_case") + set(F_SYM_ARITH_C "cmumps_##lower_case") + set(F_SYM_ARITH_Z "zmumps_##lower_case") +endif(FortranCInterface_GLOBAL_CASE STREQUAL "UPPER") + +if (NOT FortranCInterface_GLOBAL_SUFFIX STREQUAL "") set(F_SYMBOL "mumps_##lower_case##${FortranCInterface_GLOBAL_SUFFIX}") - set(F_SYM_ARITH_D "dmumps_##lower_case##${FortranCInterface_GLOBAL_SUFFIX}") set(F_SYM_ARITH_S "smumps_##lower_case##${FortranCInterface_GLOBAL_SUFFIX}") - set(F_SYM_ARITH_C "cmumps_##lower_case##${FortranCInterface_GLOBAL_SUFFIX}") + set(F_SYM_ARITH_D "dmumps_##lower_case##${FortranCInterface_GLOBAL_SUFFIX}") set(F_SYM_ARITH_Z "zmumps_##lower_case##${FortranCInterface_GLOBAL_SUFFIX}") -endif(FortranCInterface_GLOBAL_CASE STREQUAL "UPPER") + set(F_SYM_ARITH_C "cmumps_##lower_case##${FortranCInterface_GLOBAL_SUFFIX}") +endif() if (NOT FortranCInterface_GLOBAL_PREFIX STREQUAL "") set(F_SYMBOL "#define F_SYMBOL(lower_case,upper_case) ${FortranCInterface_GLOBAL_PREFIX}##${F_SYMBOL}")