summaryrefslogtreecommitdiffstats
path: root/kamera/ConfigureChecks.cmake
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2013-01-29 23:35:32 -0600
committerTimothy Pearson <[email protected]>2013-01-29 23:35:32 -0600
commitefb9cf24757cc444480e2d7d30bd01293177d277 (patch)
tree92fd02b819cf9c5f0c64a15aab1e434b234ba1a0 /kamera/ConfigureChecks.cmake
parent14ad34cde3cb2917e91092546631952d0258a222 (diff)
parentd4d1a5808bad1023c8291a52c2143b36f6b41d85 (diff)
downloadtdegraphics-efb9cf24757cc444480e2d7d30bd01293177d277.tar.gz
tdegraphics-efb9cf24757cc444480e2d7d30bd01293177d277.zip
Merge branch 'master' of http://scm.trinitydesktop.org/scm/git/tdegraphics
Diffstat (limited to 'kamera/ConfigureChecks.cmake')
-rw-r--r--kamera/ConfigureChecks.cmake8
1 files changed, 8 insertions, 0 deletions
diff --git a/kamera/ConfigureChecks.cmake b/kamera/ConfigureChecks.cmake
index 359f9a00..b9f8f8d6 100644
--- a/kamera/ConfigureChecks.cmake
+++ b/kamera/ConfigureChecks.cmake
@@ -13,3 +13,11 @@ pkg_search_module( GPHOTO2 libgphoto2 )
if( NOT GPHOTO2_FOUND )
tde_message_fatal( "libgphoto2 is required, but was not found on your system" )
endif( )
+
+check_library_exists(gphoto2_port gp_port_info_get_name "" GPHOTO2_5)
+if(GPHOTO2_5)
+ message(STATUS " found libgphoto2 2.5")
+else(GPHOTO2_5)
+ message(STATUS " assuming libgphoto2 2.4")
+endif(GPHOTO2_5)
+set(HAVE_GPHOTO2_5 ${GPHOTO2_5} CACHE FILEPATH "")