test_MAGMA.cmake 479 Bytes
Newer Older
1
#First check if we can compile with MAGMA
2
if (${CLI_FLEUR_USE_MAGMA})
3
   message("Set FLEUR_USE_MAGMA to environment, skipping test")
4
   set(FLEUR_USE_MAGMA ${CLI_FLEUR_USE_MAGMA})
5
else()
6 7 8
try_compile(FLEUR_USE_MAGMA ${CMAKE_BINARY_DIR} ${CMAKE_SOURCE_DIR}/cmake/tests/test_MAGMA.f90
LINK_LIBRARIES ${FLEUR_LIBRARIES}
            )
9
endif()
10 11 12
message("MAGMA Library found:${FLEUR_USE_MAGMA}")

if (FLEUR_USE_MAGMA)
13
   set(FLEUR_DEFINITIONS ${FLEUR_DEFINITIONS} "CPP_MAGMA")
14
endif()