.
This commit is contained in:
@@ -90,13 +90,13 @@ endfunction()
|
||||
configure_file(${CMAKE_CURRENT_LIST_DIR}/run-all.sh ${CMAKE_CURRENT_BINARY_DIR}/run-all.sh COPYONLY)
|
||||
|
||||
if (MPI_FOUND)
|
||||
add_executable(main main.cpp)
|
||||
target_link_libraries(main MPI::MPI_CXX)
|
||||
# target_include_directories(main PRIVATE ${MPI_CXX_INCLUDE_PATH})
|
||||
# target_compile_options(main PRIVATE ${MPI_CXX_COMPILE_FLAGS})
|
||||
# target_link_libraries(main ${MPI_CXX_LIBRARIES} ${MPI_CXX_LINK_FLAGS})
|
||||
set_cxx_options(main)
|
||||
set_cxx_standard(main)
|
||||
add_executable(hello-world hello_world.cpp)
|
||||
target_link_libraries(hello-world MPI::MPI_CXX)
|
||||
# target_include_directories(hello-world PRIVATE ${MPI_CXX_INCLUDE_PATH})
|
||||
# target_compile_options(hello-world PRIVATE ${MPI_CXX_COMPILE_FLAGS})
|
||||
# target_link_libraries(hello-world ${MPI_CXX_LIBRARIES} ${MPI_CXX_LINK_FLAGS})
|
||||
set_cxx_options(hello-world)
|
||||
set_cxx_standard(hello-world)
|
||||
endif()
|
||||
|
||||
if (MPI_FOUND)
|
||||
|
Reference in New Issue
Block a user