From 4af4a8ca161f410a19bfb6c6f2961a2c581cbb6f Mon Sep 17 00:00:00 2001 From: apathy Date: Thu, 7 Jul 2016 01:40:56 -0700 Subject: [PATCH] Add messages regarding whether udplibrary has been detected or not --- CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 082f94a..9c42a93 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -17,8 +17,11 @@ include(GroupSourceByFilesystem) include(ModernCpp) set_property(GLOBAL PROPERTY USE_FOLDERS ON) -if (EXISTS "externals/udplibrary/CMakeLists.txt") +if (EXISTS "${PROJECT_SOURCE_DIR}/externals/udplibrary/CMakeLists.txt") + message(STATUS "Detected udplibrary") set(HAVE_UDPLIBRARY 1) +else() + message(FATAL_ERROR "udplibrary required... copy from swg source to the externals directory") endif() add_definitions(-DBOOST_ALL_NO_LIB)