Commit e53903db authored by Gustav Bihlmayer's avatar Gustav Bihlmayer

Bugfix for FLEUR_USE_WANNIER

parent 26b370bd
......@@ -6,13 +6,13 @@ try_compile(FLEUR_USE_WANN4 ${CMAKE_BINARY_DIR} ${CMAKE_SOURCE_DIR}/cmake/tests/
message("Wannier90-4 1.2 Library found:${FLEUR_USE_WANN4}")
if (DEFINED ENV{FLEUR_USE_WANNIER})
if (ENV{FLEUR_USE_WANNIER})
if (NOT FLEUR_USE_WANN)
if (NOT FLEUR_USE_WANN4)
message(FATAL_ERROR "You asked for Wannier90 but cmake couldn't find it. Please check your Fortran compiler settings")
endif()
else()
if (FLEUR_USE_WANN)
if (FLEUR_USE_WANN4)
message("Wannier library found, but you explicitely asked not to use it")
set(FLEUR_USE_WANN FALSE)
set(FLEUR_USE_WANN4 FALSE)
endif()
endif()
endif()
......
......@@ -6,13 +6,13 @@ try_compile(FLEUR_USE_WANN5 ${CMAKE_BINARY_DIR} ${CMAKE_SOURCE_DIR}/cmake/tests/
message("Wannier90-5 1.2 Library found:${FLEUR_USE_WANN5}")
if (DEFINED ENV{FLEUR_USE_WANNIER})
if (ENV{FLEUR_USE_WANNIER})
if (NOT FLEUR_USE_WANN)
if (NOT FLEUR_USE_WANN5)
message(FATAL_ERROR "You asked for Wannier90 but cmake couldn't find it. Please check your Fortran compiler settings")
endif()
else()
if (FLEUR_USE_WANN)
if (FLEUR_USE_WANN5)
message("Wannier library found, but you explicitely asked not to use it")
set(FLEUR_USE_WANN FALSE)
set(FLEUR_USE_WANN5 FALSE)
endif()
endif()
endif()
......
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