From 5fac044f8da14563a3afca64bd05facd6811df91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Andriot?= Date: Sun, 8 May 2016 16:58:13 +0200 Subject: Fix libcryptsetup detection without pkg-config file MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: François Andriot --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'CMakeLists.txt') 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 ) -- cgit v1.2.1