From 31fbf9910997a87df5cff7b081a872294250d3d5 Mon Sep 17 00:00:00 2001 From: Dennis Luxen Date: Wed, 25 Jun 2014 10:53:03 +0200 Subject: [PATCH] fail hard when building tools and not all prequisites are met --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index a328c98d8..dc202c849 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -263,6 +263,8 @@ if(WITH_TOOLS) target_link_libraries( osrm-components ${GDAL_LIBRARIES} ${Boost_LIBRARIES} FINGERPRINT GITDESCRIPTION COORDLIB) + else() + message(FATAL_ERROR "libgdal and/or development headers not found") endif() add_executable(osrm-cli Tools/simpleclient.cpp) target_link_libraries(osrm-cli ${Boost_LIBRARIES} ${OPTIONAL_SOCKET_LIBS} OSRM FINGERPRINT GITDESCRIPTION)