ext/fsevent_watch/fsevent_watch/cli.h in rb-fsevent-0.9.0.pre3 vs ext/fsevent_watch/fsevent_watch/cli.h in rb-fsevent-0.9.0.pre4
- old
+ new
@@ -3,11 +3,17 @@
#ifndef CLI_NAME
#define CLI_NAME "fsevent_watch"
#endif /* CLI_NAME */
+#ifndef PROJECT_VERSION
+#error "PROJECT_VERSION not set"
+#endif /* PROJECT_VERSION */
+
#ifndef CLI_VERSION
-#define CLI_VERSION "0.0.1"
+#define _str(s) #s
+#define _xstr(s) _str(s)
+#define CLI_VERSION _xstr(PROJECT_VERSION)
#endif /* CLI_VERSION */
#include "common.h"
struct cli_info {