Commit 265b9dab authored by niklas.baumgarten's avatar niklas.baumgarten
Browse files

replaced compiler with compiler variable

parent a9e29031
cmake_minimum_required(VERSION 3.5.1)
project(Mpp)
#project(Mpp)
#---------------------------------------------------------------------------------------#
## Google test (Placed here to not compile it with mpiCC)
......@@ -11,10 +11,10 @@ project(Mpp)
# MPI
find_package(MPI REQUIRED)
include_directories(${MPI_INCLUDE_PATH}) #/usr/include/mpi/
include_directories(${MPI_INCLUDE_PATH})
set(CMAKE_C_COMPILER mpicc) #/usr/bin/mpicc
set(CMAKE_CXX_COMPILER mpiCC) #/usr/bin/mpiCC
set(CMAKE_C_COMPILER ${MPI_C_COMPILER})
set(CMAKE_CXX_COMPILER ${MPI_CXX_COMPILER})
set(CMAKE_CXX_COMPILE_FLAGS ${CMAKE_CXX_COMPILE_FLAGS} ${MPI_COMPILE_FLAGS})
set(CMAKE_CXX_LINK_FLAGS ${CMAKE_CXX_LINK_FLAGS} ${MPI_LINK_FLAGS})
......@@ -32,10 +32,11 @@ find_package(BLAS REQUIRED)
find_package(LAPACK REQUIRED)
#---------------------------------------------------------------------------------------#
# Include and manage libraries
# Include directories
include_directories(${PROJECT_SOURCE_DIR}/src)
include_directories(${PROJECT_SOURCE_DIR}/src/LIB_PS)
include_directories(${PROJECT_SOURCE_DIR}superlu/include)
#---------------------------------------------------------------------------------------#
# Link libraries
link_directories(${PROJECT_SOURCE_DIR}/superlu/lib)
......
Supports Markdown
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