summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorFrançois Andriot <francois.andriot@free.fr>2016-05-08 16:58:13 +0200
committerSlávek Banko <slavek.banko@axis.cz>2016-05-08 16:58:13 +0200
commit5fac044f8da14563a3afca64bd05facd6811df91 (patch)
treed2e36102f08420f3c4af1d451cc22c82655bbf22 /CMakeLists.txt
parentc7171b93f4fd2b735aa9627f88e95066da34276b (diff)
downloadtdelibs-5fac044f8da14563a3afca64bd05facd6811df91.tar.gz
tdelibs-5fac044f8da14563a3afca64bd05facd6811df91.zip
Fix libcryptsetup detection without pkg-config file
Signed-off-by: François Andriot <francois.andriot@free.fr>
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 8758ddea4..18c6dcfeb 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -694,7 +694,11 @@ endif( )
if( WITH_CRYPTSETUP )
pkg_search_module( LIBCRYPTSETUP libcryptsetup )
if( NOT LIBCRYPTSETUP_FOUND )
+ find_library( LIBCRYPTSETUP_LIBRARY cryptsetup )
+ if( NOT LIBCRYPTSETUP_LIBRARY )
message(FATAL_ERROR "\ncryptsetup support was requested, but libcryptsetup was not found on your system" )
+ endif ( NOT LIBCRYPTSETUP_LIBRARY )
+ set( LIBCRYPTSETUP_LIBRARIES ${LIBCRYPTSETUP_LIBRARY} )
endif( NOT LIBCRYPTSETUP_FOUND )
set( HAVE_CRYPTSETUP 1 )
if ( HAVE_CRYPTSETUP )