Commit d49c836e authored by S.Rost's avatar S.Rost

Bugfix for chase switch in configure script

parent 1acd264c
......@@ -77,6 +77,11 @@ then
echo "set(CLI_FLEUR_USE_WANNIER $CLI_USE_WANNIER)" >>config.cmake
fi
if [ "$CLI_USE_CHASE" ]
then
echo "set(CLI_FLEUR_USE_CHASE $CLI_USE_CHASE)" >>config.cmake
fi
if [ "$CLI_USE_MAGMA" ]
then
echo "set(CLI_FLEUR_USE_MAGMA $CLI_USE_MAGMA)" >>config.cmake
......
......@@ -13,19 +13,20 @@ try_compile(FLEUR_USE_CHASE ${CMAKE_BINARY_DIR} ${CMAKE_SOURCE_DIR}/cmake/tests/
# endif()
#endif()
if (defined CLI_USE_CHASE)
if ( CLI_USE_CHASE )
message("ChASE Library found:${FLEUR_USE_CHASE}")
if (DEFINED CLI_FLEUR_USE_CHASE)
if (${CLI_FLEUR_USE_CHASE})
if (NOT FLEUR_USE_CHASE)
FLEUR_USE_CHASE=TRUE
set(FLEUR_USE_CHASE TRUE)
message("Test for Chase failed, but you specified to use it anyway...")
endif()
else
else()
if (FLEUR_USE_CHASE)
FLEUR_USE_CHASE=FALSE
message("Test for Chase succeeded, but you specified not to use it.")
set(FLEUR_USE_CHASE FALSE)
message("Test for Chase succeeded, but you specified not to use it.")
endif()
endif()
endif()
message("ChASE Library found:${FLEUR_USE_CHASE}")
if (FLEUR_USE_CHASE)
# set(FLEUR_DEFINITIONS ${FLEUR_DEFINITIONS} "CPP_CHASE")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment