Thanks, that really clears things up for me!
--Alex
On 04.04.15 14:39, Mark Abraham wrote:
On 03/04/2015 8:24 pm, Alexander Droste
alexander.ra.dro...@googlemail.com wrote:
Hello everyone,
based on the documentation here:
http://www.cmake.org/cmake/help/v3.0/module/FindMPI.html
and posts
Hello everyone,
based on the documentation here:
http://www.cmake.org/cmake/help/v3.0/module/FindMPI.html
and posts on SO:
http://stackoverflow.com/questions/23163075/how-to-compile-an-mpi-included-c-program-using-cmake
I'm still not a 100% sure if I set up my CMake project correctly.
This is
: cmake@cmake.org
Subject: Re: [CMake] how to use the FindMPI module correctly?
Thanks for the validation.
But wouldn't the shorter version break in case MPI_C_COMPILE_FLAGS are
added in the future?
On 03.04.15 23:28, Thompson, KT wrote:
Alex,
Your setup looks fine. However, depending on your
Droste [alexander.ra.dro...@googlemail.com]
Sent: Friday, April 03, 2015 3:19 PM
To: Daniel Schepler
Cc: cmake@cmake.org
Subject: Re: [CMake] how to use the FindMPI module correctly?
Do you mean just using:
target_compile_options(core.x PUBLIC ${MPI_C_COMPILE_FLAGS})
but not:
include_directories
-Original Message-
From: CMake [mailto:cmake-boun...@cmake.org] On Behalf Of Alexander Droste
Sent: Friday, April 03, 2015 12:24 PM
To: cmake@cmake.org
Subject: [CMake] how to use the FindMPI module correctly?
Hello everyone,
based on the documentation here:
http://www.cmake.org/cmake/help/v3.0/module
Do you mean just using:
target_compile_options(core.x PUBLIC ${MPI_C_COMPILE_FLAGS})
but not:
include_directories(SYSTEM ${MPI_C_INCLUDE_PATH})
link_directories(${MPI_C_LINK_FLAGS})
set(CMAKE_COMPILE_FLAGS ${CMAKE_COMPILE_FLAGS} ${MPI_C_COMPILE_FLAGS})
target_link_libraries(core.x
calling: message(STATUS MPI_C_COMPILE_FLAGS = ${MPI_C_COMPILE_FLAGS})
gives me: MPI_C_COMPILE_FLAGS =
So there are no flags contained.
Is it in general preferable to use this:
target_compile_options..
instead of:
set(CMAKE_COMPILE_FLAGS ${CMA..
?
On 04.04.15 00:28, Daniel Schepler wrote:
I