Maintain semantic version info in core/version.h (#1630)

Remove version info from config_common.cmake, ref to #1617
This commit is contained in:
liang.he 2022-10-24 12:46:03 +08:00 committed by GitHub
parent 4a1e522c53
commit b5eea934cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 0 additions and 33 deletions

View File

@ -109,22 +109,6 @@ else ()
unset (LLVM_AVAILABLE_LIBS)
endif ()
########################################
## semantic version information
if (NOT DEFINED WAMR_VERSION_MAJOR)
set (WAMR_VERSION_MAJOR 1)
endif ()
if (NOT DEFINED WAMR_VERSION_MINOR)
set (WAMR_VERSION_MINOR 1)
endif ()
if (NOT DEFINED WAMR_VERSION_PATCH)
set (WAMR_VERSION_PATCH 1)
endif ()
configure_file(${WAMR_ROOT_DIR}/core/version.h.in ${WAMR_ROOT_DIR}/core/version.h @ONLY)
########################################
message ("-- Build Configurations:")

View File

@ -3,9 +3,6 @@
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
*/
/* Please don't modify this header. It is automatically generated.
Any modification should be in config_common.cmake */
#ifndef _WAMR_VERSION_H_
#define _WAMR_VERSION_H_
#define WAMR_VERSION_MAJOR 1

View File

@ -1,14 +0,0 @@
/*
* Copyright (C) 2019 Intel Corporation. All rights reserved.
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
*/
/* Please don't modify this header. It is automatically generated.
Any modification should be in config_common.cmake */
#ifndef _WAMR_VERSION_H_
#define _WAMR_VERSION_H_
#cmakedefine WAMR_VERSION_MAJOR @WAMR_VERSION_MAJOR@
#define WAMR_VERSION_MINOR @WAMR_VERSION_MINOR@
#define WAMR_VERSION_PATCH @WAMR_VERSION_PATCH@
#endif