Commit 14772f58 authored by Chris Cantwell's avatar Chris Cantwell

Fixed setting of MPI parameters in Cmake.

parent f7d34ccc
......@@ -170,10 +170,14 @@ MACRO(ADD_NEKTAR_EXECUTABLE name component sources)
IF( NEKTAR_USE_MPI )
TARGET_LINK_LIBRARIES(${name} ${MPI_LIBRARY} ${MPI_EXTRA_LIBRARY})
SET_PROPERTY(TARGET ${name}
APPEND PROPERTY COMPILE_FLAGS ${MPI_COMPILE_FLAGS})
SET_PROPERTY(TARGET ${name}
APPEND PROPERTY LINK_FLAGS ${MPI_LINK_FLAGS})
SET_TARGET_PROPERTIES(${name}
PROPERTIES COMPILE_FLAGS "${THE_COMPILE_FLAGS} ${MPI_COMPILE_FLAGS}")
SET_TARGET_PROPERTIES(${name}
PROPERTIES LINK_FLAGS "${THE_LINK_FLAGS} ${MPI_LINK_FLAGS}")
#SET_PROPERTY(TARGET ${name}
# APPEND PROPERTY COMPILE_FLAGS "${MPI_COMPILE_FLAGS}")
#SET_PROPERTY(TARGET ${name}
# APPEND PROPERTY LINK_FLAGS "${MPI_LINK_FLAGS}")
ENDIF( NEKTAR_USE_MPI )
IF( ${CMAKE_SYSTEM} MATCHES "Linux.*" )
......
Markdown is supported
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