Skip to content

Commit 637ed33

Browse files
committed
add example Lustre plugin for adding lustre stripe info to the DBs
1 parent c54a4ee commit 637ed33

File tree

2 files changed

+427
-0
lines changed

2 files changed

+427
-0
lines changed

contrib/CMakeLists.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,3 +132,11 @@ foreach(file ${USEFUL})
132132
endforeach()
133133

134134
add_subdirectory(CI)
135+
136+
# See if lustre-devel is installed by checking if the lustreapi.h header is in a standard include path.
137+
find_path(LUSTRE_PLUGIN "lustre/lustreapi.h")
138+
# If so, build the lustre example plugin:
139+
if (LUSTRE_PLUGIN)
140+
add_library(lustre_plugin SHARED lustre_plugin.c)
141+
target_link_libraries(lustre_plugin lustreapi)
142+
endif()

0 commit comments

Comments
 (0)