From 6d9c68a6177a2fc203cd12ccea1b4bba3172f652 Mon Sep 17 00:00:00 2001 From: Rohit Nirmal Date: Mon, 10 Nov 2014 17:57:26 -0600 Subject: [PATCH] Fail CMake if building WX without GTK libraries. --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7646574728..87a90d3410 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -685,6 +685,8 @@ if(NOT DISABLE_WX AND NOT ANDROID) include(FindGTK2) if(GTK2_FOUND) include_directories(${GTK2_INCLUDE_DIRS}) + else() + message(FATAL_ERROR "GTK is required to build the WX UI. Please install the GTK development libraries.") endif() endif() endif()