Commit 209b1d00 authored by Yingzhou Li's avatar Yingzhou Li Committed by Victor Yu

Updated compling system and add a PW matrix

parent 1a9ab1ff
......@@ -26,7 +26,7 @@ ENDIF()
MESSAGE(STATUS "ELSI RCI will be installed to: ${CMAKE_INSTALL_PREFIX}")
### Options ###
OPTION(ENABLE_TESTS "Build ELSI_RCI test programs" OFF)
OPTION(ENABLE_TESTS "Build ELSI_RCI test programs" ON)
OPTION(BUILD_SHARED_LIBS "Whether to build shared or static libraries" OFF)
SET(LIB_PATHS "" CACHE STRING "List of directories containing libraries to be linked against")
SET(INC_PATHS "" CACHE STRING "List of include directories")
......@@ -37,6 +37,7 @@ STRING(REPLACE "-l" "" LIBS "${LIBS}")
FOREACH(str LIBS LIB_PATHS INC_PATHS)
convert_to_list(${str})
ENDFOREACH()
MESSAGE(${LIB_PATHS})
generate_library_targets(LIB_PATHS LIBS)
### Compilations ###
......
This diff is collapsed.
### Generic Intel ###
SET(CMAKE_Fortran_COMPILER "mpiifort" CACHE STRING "MPI Fortran compiler")
SET(CMAKE_Fortran_COMPILER "ifort" CACHE STRING "MPI Fortran compiler")
SET(CMAKE_Fortran_FLAGS "-O3 -xAVX -fp-model precise" CACHE STRING "Fortran flags")
SET(LIB_PATHS "$ENV{MKLROOT}/lib/intel64" CACHE STRING "External library paths")
SET(LIB_PATHS "/opt/intel/mkl/lib" CACHE STRING "External library paths")
SET(LIBS "mkl_intel_lp64 mkl_sequential mkl_core" CACHE STRING "External libraries")
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