Use modern target-based dependency for MPI
This commit is contained in:
parent
77adb27cb9
commit
5fed28bad8
@ -87,9 +87,7 @@ endif()
|
|||||||
|
|
||||||
find_package(MPI REQUIRED)
|
find_package(MPI REQUIRED)
|
||||||
add_executable(ovnisync ovnisync.c)
|
add_executable(ovnisync ovnisync.c)
|
||||||
target_include_directories(ovnisync PRIVATE ${MPI_C_INCLUDE_PATH})
|
target_link_libraries(ovnisync m MPI::MPI_C)
|
||||||
target_compile_options(ovnisync PRIVATE ${MPI_C_COMPILE_FLAGS})
|
|
||||||
target_link_libraries(ovnisync m ${MPI_C_LIBRARIES} ${MPI_C_LINK_FLAGS})
|
|
||||||
|
|
||||||
install(TARGETS ovni LIBRARY)
|
install(TARGETS ovni LIBRARY)
|
||||||
install(TARGETS emu dump ovni2prv ovnisync RUNTIME)
|
install(TARGETS emu dump ovni2prv ovnisync RUNTIME)
|
||||||
|
Loading…
Reference in New Issue
Block a user