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.

--

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake

Reply via email to