Commit ce985201 authored by ua741532's avatar ua741532

Bugs in cmake/cmake.rwth.config removed

parent ee9cbb12
......@@ -2,9 +2,13 @@
set (CMAKE_Fortran_COMPILER "mpiifort")
project(Fleur Fortran)
enable_language(Fortran)
enable_language(Fortran C)
set (Fleur_uses_serial TRUE)
find_package(LibXml2 REQUIRED)
set(CMAKE_C_FLAGS "-I${LIBXML2_INCLUDE_DIR}")
#MPI can be switched off with NO_MPI variable
if (NOT DEFINED ENV{NO_MPI} )
set(Fleur_uses_MPI TRUE)
......@@ -26,10 +30,10 @@ endif ()
#The Fortran compile flags
set(CMAKE_Fortran_FLAGS "${HDF5_INCL} -mkl -warn nousage -assume byterecl -r8 " )
set(CMAKE_Fortran_FLAGS_RELEASE " -O3 -openmp" )
set(CMAKE_Fortran_FLAGS_RELEASE " -O3 -qopenmp" )
set(CMAKE_Fortran_FLAGS_DEBUG " -O0 -g" )
set(LAPACK_LIBS "-mkl -lmatmul -openmp -lpthread")
set(LAPACK_LIBS "-mkl -lmatmul -qopenmp -lpthread -lxml2")
if (DEFINED ENV{SCALAPACK_ROOT})
set(Fleur_uses_SCALAPACK TRUE)
......
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