only build growl bacend if it is checked out

This commit is contained in:
Patrick von Reth 2014-07-30 11:32:39 +02:00
parent a015a15026
commit 5e94d98d54
1 changed files with 19 additions and 15 deletions

View File

@ -1,4 +1,5 @@
if( WITH_GROWL_BACKEND )
if(EXISTS ${CMAKE_SOURCE_DIR}/thirdparty/gntp-send/)
message( STATUS "Adding libgrowl backend" )
find_package(Threads REQUIRED)
@ -19,5 +20,8 @@ if( WITH_GROWL_BACKEND )
endif()
install(TARGETS libsnore_backend_growl ${SNORE_PLUGIN_INSTALL_PATH})
else()
message( WARNING "To build the Growl Backend please checkout the submodule" )
endif()
endif( WITH_GROWL_BACKEND )