[CMake] how to use the FindMPI module correctly?
Alexander Droste
alexander.ra.droste at googlemail.com
Fri Apr 3 18:42:35 EDT 2015
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 mean replacing the set CMAKE_COMPILE_FLAGS line with my target_compile_options line.
>
> As for the message call, I usually use something more like: message(STATUS "MPI_C_COMPILE_FLAGS = ${MPI_C_COMPILE_FLAGS}") for debugging.
>
More information about the CMake
mailing list