summaryrefslogtreecommitdiffstats
path: root/kamera/ConfigureChecks.cmake
diff options
context:
space:
mode:
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 "")