mirror of
https://github.com/neovim/neovim
synced 2025-07-15 16:51:49 +00:00
fix(build): use correct cmake expression for $<CONFIG>
${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.
This commit is contained in:
@ -12,6 +12,10 @@
|
||||
#endif
|
||||
|
||||
#define NVIM_VERSION_CFLAGS "${VERSION_STRING}"
|
||||
#define NVIM_VERSION_BUILD_TYPE "${CONFIG}"
|
||||
#ifdef ZIG_BUILD
|
||||
# define NVIM_VERSION_BUILD_TYPE "${CONFIG}"
|
||||
#else
|
||||
# define NVIM_VERSION_BUILD_TYPE "$<CONFIG>"
|
||||
#endif
|
||||
|
||||
#endif // AUTO_VERSIONDEF_H
|
||||
|
Reference in New Issue
Block a user