Skip to content

Commit

Permalink
correct cppsdk version (#1490)
Browse files Browse the repository at this point in the history
  • Loading branch information
jingxu10 authored Mar 17, 2023
1 parent fd5c10b commit edb3f1b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion cmake/cppsdk/libintel-ext-pt.installer.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ LOGFILE="ipex-info"

# Below values will be set automatically. DO NOT modify them manually!
# Append new required relative_path/components in LIBIPEX_COMP_LIST in cmake scripts
LIBIPEX_VERSION="@CMAKE_PROJECT_VERSION@"
LIBIPEX_VERSION="@LIBIPEX_VERSION@"
LIBIPEX_GITREV="@LIBIPEX_GITREV@"
LIBIPEX_BUILD_TYPE="@CMAKE_BUILD_TYPE@"
LIBIPEX_PACK_NAME="@CPACK_PACKAGE_NAME@"
Expand Down
5 changes: 2 additions & 3 deletions csrc/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
set(IPEX_CSRC_ROOT_DIR "${CMAKE_CURRENT_SOURCE_DIR}")
set(LIBIPEX_GITREV "${IPEX_GITREV}")

if(BUILD_MODULE_TYPE STREQUAL "GPU")
add_subdirectory(${IPEX_CSRC_ROOT_DIR}/gpu)
Expand Down Expand Up @@ -72,9 +71,9 @@ if(BUILD_MODULE_TYPE STREQUAL "CPPSDK")

include(CPack)

set(INSTALL_SCRIPT "libintel-ext-pt-${CMAKE_PROJECT_VERSION}.run")
set(INSTALL_SCRIPT "libintel-ext-pt-${LIBIPEX_VERSION}.run")
if(GLIBCXX_USE_CXX11_ABI)
set(INSTALL_SCRIPT "libintel-ext-pt-cxx11-abi-${CMAKE_PROJECT_VERSION}.run")
set(INSTALL_SCRIPT "libintel-ext-pt-cxx11-abi-${LIBIPEX_VERSION}.run")
endif()
configure_package_config_file(
${IPEX_ROOT_DIR}/cmake/cppsdk/libintel-ext-pt.installer.sh.in
Expand Down
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,8 @@ def run(self):
'PYTHON_INCLUDE_DIR' : sysconfig.get_paths()['include'],
'PYTHON_EXECUTABLE' : sys.executable,
'IPEX_PROJ_NAME' : PACKAGE_NAME,
'IPEX_GITREV' : ipex_git_sha,
'LIBIPEX_GITREV' : ipex_git_sha,
'LIBIPEX_VERSION' : ipex_build_version,
}

build_with_cpu = True # Default ON
Expand Down

0 comments on commit edb3f1b

Please sign in to comment.