mirror of
https://github.com/neovim/neovim
synced 2025-07-15 16:51:49 +00:00
${CONFIG} is an empty string even when configuration is known at configuration time. $<CONFIG> has to be used at "generation time" Currently zig's reimplementation of cmake config headers does not support $<CONFIG> so use a branch to pick the one which works.
22 lines
583 B
C
22 lines
583 B
C
#ifndef AUTO_VERSIONDEF_H
|
|
#define AUTO_VERSIONDEF_H
|
|
|
|
#define NVIM_VERSION_MAJOR @NVIM_VERSION_MAJOR@
|
|
#define NVIM_VERSION_MINOR @NVIM_VERSION_MINOR@
|
|
#define NVIM_VERSION_PATCH @NVIM_VERSION_PATCH@
|
|
#define NVIM_VERSION_PRERELEASE "@NVIM_VERSION_PRERELEASE@"
|
|
|
|
#cmakedefine NVIM_VERSION_MEDIUM "@NVIM_VERSION_MEDIUM@"
|
|
#ifndef NVIM_VERSION_MEDIUM
|
|
# include "auto/versiondef_git.h"
|
|
#endif
|
|
|
|
#define NVIM_VERSION_CFLAGS "${VERSION_STRING}"
|
|
#ifdef ZIG_BUILD
|
|
# define NVIM_VERSION_BUILD_TYPE "${CONFIG}"
|
|
#else
|
|
# define NVIM_VERSION_BUILD_TYPE "$<CONFIG>"
|
|
#endif
|
|
|
|
#endif // AUTO_VERSIONDEF_H
|