aboutsummaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorTheofilos Intzoglou <int.teo@gmail.com>2011-10-05 00:57:42 +0300
committerTheofilos Intzoglou <int.teo@gmail.com>2011-10-05 00:57:42 +0300
commita0fdbc8c237219c1f15d60bae87e2da0ec261564 (patch)
treea32787ecb547489f18d984b022977a2f9bf4671e /cmake
parentImplement get_hard_masked and get_path, (diff)
downloadc-portage-a0fdbc8c237219c1f15d60bae87e2da0ec261564.tar.gz
c-portage-a0fdbc8c237219c1f15d60bae87e2da0ec261564.tar.bz2
c-portage-a0fdbc8c237219c1f15d60bae87e2da0ec261564.zip
Port to CMake and add a check for the portage api. If the api is
not available, it will refuse to build the library.
Diffstat (limited to '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")