Skip to content

Commit e1ecdea

Browse files
ArturHarasimiukgfxbot
authored andcommitted
fixing igc-opencl.pc file
adding build number when provided externally Change-Id: Iac61c5df0125cfdde8d71a6ac9a83148c8964591 Signed-off-by: Artur Harasimiuk <[email protected]>
1 parent 2b4305e commit e1ecdea

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

IGC/AdaptorOCL/igc-opencl.pc.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ libdir=${exec_prefix}/@CMAKE_INSTALL_LIBDIR@
55

66
Name: igc-opencl
77
Description: Intel(R) Graphics Compiler for OpenCL(TM)
8-
Version: @IGC_API_MAJOR_VERSION@.@IGC_API_MINOR_VERSION@.@IGC_API_PATCH_VERSION@
8+
Version: @IGC_API_MAJOR_VERSION@.@IGC_API_MINOR_VERSION@.@IGC_API_PATCH_VERSION@@IGC_PC_PACKAGE_RELEASE@
99
Cflags: -I${includedir} -I${includedir}/cif -I${includedir}/ocl_igc_shared/executable_format -I${includedir}/ocl_igc_shared/device_enqueue
1010
Libs:

IGC/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3902,6 +3902,10 @@ endif()
39023902
# cpack to create deb package
39033903
########################################################################
39043904

3905+
set(IGC_PC_PACKAGE_RELEASE "")
3906+
if(DEFINED IGC_PACKAGE_RELEASE)
3907+
set(IGC_PC_PACKAGE_RELEASE "-${IGC_PACKAGE_RELEASE}")
3908+
endif()
39053909
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/AdaptorOCL/igc.opencl.h.in ${IGC_BUILD__IGC_BIN_DIR}/AdaptorOCL/igc.opencl.h)
39063910
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/AdaptorOCL/igc-opencl.pc.in ${IGC_BUILD__IGC_BIN_DIR}/AdaptorOCL/igc-opencl.pc @ONLY)
39073911

0 commit comments

Comments
 (0)