Get rid of CLion warnings about undefined PACKAGE_* macros
authorJennifer Richards <jennifer@painless-security.com>
Wed, 18 Apr 2018 14:09:10 +0000 (10:09 -0400)
committerJennifer Richards <jennifer@painless-security.com>
Wed, 18 Apr 2018 14:09:10 +0000 (10:09 -0400)
CMakeLists.txt

index f7bff87..17843d1 100644 (file)
@@ -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