We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8b02d4f + 80f0f4a commit cf67af5Copy full SHA for cf67af5
src/clib/CMakeLists.txt
@@ -68,6 +68,11 @@ if (PIO_ENABLE_TIMING)
68
PUBLIC ${GPTL_C_INCLUDE_DIRS})
69
target_link_libraries (pioc
70
PUBLIC ${GPTL_C_LIBRARIES})
71
+
72
+ # GPTL expects HAVE_MPI, if MPI is available, when using GPTL header files
73
+ if (NOT PIO_USE_MPISERIAL)
74
+ target_compile_definitions (pioc PUBLIC HAVE_MPI)
75
+ endif ()
76
else ()
77
message (STATUS "Using internal GPTL C library for timing")
78
target_include_directories (pioc
0 commit comments