From 0d7916b7c2267ab96086166e1e31d77d6877c9a7 Mon Sep 17 00:00:00 2001 From: theoreticalbts Date: Thu, 29 Sep 2016 14:55:09 -0400 Subject: [PATCH] Handle zlib / bzip2 not found --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2cf93d5..269486b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -323,6 +323,7 @@ if( ZLIB_FOUND ) add_definitions( -DHAS_ZLIB ) else() MESSAGE( STATUS "zlib not found" ) + set( ZLIB_LIBRARIES "" ) endif( ZLIB_FOUND ) find_package( BZip2 ) @@ -331,6 +332,7 @@ if( BZIP2_FOUND ) add_definitions( -DHAS_BZIP2 ) else() MESSAGE( STATUS "bzip2 not found" ) + set( BZIP2_LIBRARIES "" ) endif( BZIP2_FOUND ) # This will become unnecessary once we update to websocketpp which fixes upstream issue #395