修改ci编译失败问题

This commit is contained in:
fumingwei
2020-09-23 18:10:59 +08:00
parent a59d3a1eef
commit 69b50d7586
2 changed files with 3 additions and 0 deletions

View File

@@ -39,4 +39,5 @@ set(KNI_VAR_VERSION "${KNI_VERSION_MAJOR}_${KNI_VERSION_MINOR}_${KNI_VERSION_PAT
# print information # print information
message(STATUS "Welcome to KNI, Version: ${KNI_GIT_VERSION}") message(STATUS "Welcome to KNI, Version: ${KNI_GIT_VERSION}")
add_definitions(-DKNI_GIT_VERSION=\"${KNI_GIT_VERSION}\") add_definitions(-DKNI_GIT_VERSION=\"${KNI_GIT_VERSION}\")
string(REGEX REPLACE "[-:+/\\.]" "_" KNI_VAR_VERSION ${KNI_VAR_VERSION})
add_definitions(-DKNI_VAR_VERSION=${KNI_VAR_VERSION}) add_definitions(-DKNI_VAR_VERSION=${KNI_VAR_VERSION})

View File

@@ -35,6 +35,8 @@ extern "C" {
#include "kni_dynamic_bypass.h" #include "kni_dynamic_bypass.h"
#define KNI_VAR_VERSION 20_09_v20_09_a59d3a1
#ifdef __cplusplus #ifdef __cplusplus
extern "C" extern "C"
{ {