aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/FindPortageApi.cmake')
-rw-r--r--cmake/FindPortageApi.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/cmake/FindPortageApi.cmake b/cmake/FindPortageApi.cmake
new file mode 100644
index 0000000..a9fc690
--- /dev/null
+++ b/cmake/FindPortageApi.cmake
@@ -0,0 +1,5 @@
+IF (EXISTS "/usr/lib/portage/pym/portage/api")
+ SET (PortageApi_FOUND "YES")
+ELSE ()
+ MESSAGE(FATAL_ERROR "Could NOT find Portage Api!")
+ENDIF (EXISTS "/usr/lib/portage/pym/portage/api")