summaryrefslogtreecommitdiffstats
path: root/cmake/modules/FindCMPI.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/modules/FindCMPI.cmake')
-rw-r--r--cmake/modules/FindCMPI.cmake12
1 files changed, 12 insertions, 0 deletions
diff --git a/cmake/modules/FindCMPI.cmake b/cmake/modules/FindCMPI.cmake
new file mode 100644
index 0000000..d814eef
--- /dev/null
+++ b/cmake/modules/FindCMPI.cmake
@@ -0,0 +1,12 @@
+
+find_path(CMPI_INCLUDE_DIR
+ NAMES cmpidt.h cmpift.h cmpimacs.h cmpios.h cmpipl.h
+ HINTS $ENV{CMPI_INCLUDE_DIR}
+ PATH_SUFFIXES include/cmpi include
+ PATHS /usr /usr/local
+)
+
+include(FindPackageHandleStandardArgs)
+find_package_handle_standard_args(CMPI DEFAULT_MSG CMPI_INCLUDE_DIR)
+
+mark_as_advanced(CMPI_INCLUDE_DIR)