mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 03:05:11 -07:00
964ae205a5
file(GENERATE) has surprising behavior as it doesn't allow different file contents for configurations with the same file name. This results in an error when building neovim with a multi-config generator. Use a workaround for now where we set the build type for multi-config generators to "Unknown".
22 lines
820 B
C
22 lines
820 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_API_LEVEL @NVIM_API_LEVEL@
|
|
#define NVIM_API_LEVEL_COMPAT @NVIM_API_LEVEL_COMPAT@
|
|
#define NVIM_API_PRERELEASE @NVIM_API_PRERELEASE@
|
|
|
|
#define NVIM_VERSION_CFLAGS "${CMAKE_C_COMPILER} $<JOIN:$<TARGET_PROPERTY:nvim,COMPILE_OPTIONS>, > -D$<JOIN:$<TARGET_PROPERTY:nvim,COMPILE_DEFINITIONS>, -D> -I$<JOIN:$<TARGET_PROPERTY:nvim,INCLUDE_DIRECTORIES>, -I>"
|
|
#define NVIM_VERSION_BUILD_TYPE "$<CONFIG>"
|
|
|
|
#endif // AUTO_VERSIONDEF_H
|