Re: [CMake] MPI: Undefined symbol

2018-08-21 Thread Haocheng Liu
This stackoverflow question might help you. On Tue, Aug 21, 2018 at 4:52 AM Florian Lindner wrote: > Hello, > > Am 20.08.18 um 17:49 schrieb Rafael Sadowski: > > On Mon Aug 20, 2

Re: [CMake] MPI: Undefined symbol

2018-08-21 Thread Florian Lindner
Hello, Am 20.08.18 um 17:49 schrieb Rafael Sadowski: > On Mon Aug 20, 2018 at 04:24:07PM +0200, Florian Lindner wrote: >> Hello, >> >> copied from a working MPI CMakeLists.txt: >> >> find_package(MPI REQUIRED) > > https://cmake.org/cmake/help/v3.0/module/FindMPI.html > > MPI__FOUND TRU

Re: [CMake] MPI: Undefined symbol

2018-08-20 Thread Rafael Sadowski
On Mon Aug 20, 2018 at 04:24:07PM +0200, Florian Lindner wrote: > Hello, > > copied from a working MPI CMakeLists.txt: > > find_package(MPI REQUIRED) https://cmake.org/cmake/help/v3.0/module/FindMPI.html MPI__FOUND TRUE if FindMPI found MPI flags for MPI__COMPILERMPI Compiler

[CMake] MPI: Undefined symbol

2018-08-20 Thread Florian Lindner
Hello, copied from a working MPI CMakeLists.txt: find_package(MPI REQUIRED) include_directories(${MPI_INCLUDE_PATH}) set(COMPILE_FLAGS ${COMPILE_FLAGS} ${MPI_COMPILE_FLAGS}) set(LINK_FLAGS ${LINK_FLAGS} ${MPI_LINK_FLAGS}) add_executable(StructureSolverParallel "StructureSolver_Parallel/struc