make the horror if statement easier to read

This commit is contained in:
Radovan Bast 2015-08-30 17:29:19 +02:00
parent 8d0d1c4848
commit abad6437c3

View File

@ -496,10 +496,16 @@ set(MATH_LIBS
# further adaptation for the static linking # further adaptation for the static linking
if (ENABLE_STATIC_LINKING) if (ENABLE_STATIC_LINKING)
if (LAPACK_TYPE MATCHES ATLAS OR LAPACK_TYPE MATCHES SYSTEM_NATIVE OR LAPACK_TYPE MATCHES OPENBLAS OR BLAS_TYPE MATCHES ATLAS OR BLAS_TYPE MATCHES SYSTEM_NATIVE OR BLAS_TYPE MATCHES OPENBLAS) if (LAPACK_TYPE MATCHES ATLAS OR
LAPACK_TYPE MATCHES SYSTEM_NATIVE OR
LAPACK_TYPE MATCHES OPENBLAS OR
BLAS_TYPE MATCHES ATLAS OR
BLAS_TYPE MATCHES SYSTEM_NATIVE OR
BLAS_TYPE MATCHES OPENBLAS)
set(MATH_LIBS ${MATH_LIBS} -Wl,--whole-archive -lpthread -Wl,--no-whole-archive) set(MATH_LIBS ${MATH_LIBS} -Wl,--whole-archive -lpthread -Wl,--no-whole-archive)
endif() endif()
if (LAPACK_TYPE MATCHES MKL OR BLAS_TYPE MATCHES MKL) if (LAPACK_TYPE MATCHES MKL OR
BLAS_TYPE MATCHES MKL)
# fix for MKL static linking (-lc not needed for PGI) # fix for MKL static linking (-lc not needed for PGI)
# radovan: why is -lc added also for PGI? when exactly is it needed? # radovan: why is -lc added also for PGI? when exactly is it needed?
set(MATH_LIBS ${MATH_LIBS} -ldl -lc) set(MATH_LIBS ${MATH_LIBS} -ldl -lc)