From c75a2def74110e1f6273326001c215ad0685c645 Mon Sep 17 00:00:00 2001 From: Jennifer Richards Date: Wed, 18 Apr 2018 10:09:10 -0400 Subject: [PATCH] Get rid of CLion warnings about undefined PACKAGE_* macros --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index f7bff87..17843d1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -14,6 +14,11 @@ include_directories(${GLIB_INCLUDE_DIRS}) include_directories(include) +# Fill these in so CLion doesn't complain. The real versions are set in the Makefile +add_definitions(-DPACKAGE_VERSION="built-with-cmake" + -DPACKAGE_NAME="Moonshot Trust Router" + -DPACKAGE_BUGREPORT="bugs@painless-security.com") + set(SOURCE_FILES common/tests/cfg_test.c common/tests/commtest.c -- 2.1.4