mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-06 10:26:29 +08:00
use externally provided names of compiler shared libraries
Intel Graphics Compiler is preparing change to unify compiler naming. They will expose two variables which we should use when loading compiler libraries. Change-Id: If6edcb7541452b3cd429a8b4f7c26f6d43169035 Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
b42e19110b
commit
12843c5eba
@@ -201,9 +201,16 @@ if(NOT IGC__IGC_TARGETS)
|
||||
message(STATUS "IGC source dir is: ${IGC_DIR}")
|
||||
|
||||
set(IGC_OPTION__LIBRARY_NAME "igdccl")
|
||||
set(FCL_OPTION__LIBRARY_NAME "igdfcl")
|
||||
set(IGC_OPTION__OUTPUT_DIR "${IGDRCL_BUILD_DIR}/igc")
|
||||
set(IGC_OPTION__INCLUDE_IGC_COMPILER_TOOLS OFF)
|
||||
add_subdirectory("${IGC_DIR}" "${IGDRCL_BUILD_DIR}/igc" EXCLUDE_FROM_ALL)
|
||||
if(NOT IGC_LIBRARY_NAME)
|
||||
set(IGC_LIBRARY_NAME "${IGC_OPTION__LIBRARY_NAME}")
|
||||
endif()
|
||||
if(NOT FCL_LIBRARY_NAME)
|
||||
set(FCL_LIBRARY_NAME "${FCL_OPTION__LIBRARY_NAME}")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
set(IGDRCL__IGC_TARGETS "${IGC__IGC_TARGETS}")
|
||||
@@ -531,3 +538,4 @@ set(_CRT_SECURE_NO_WARNINGS 1)
|
||||
include(package.cmake)
|
||||
|
||||
configure_file(config.h.in ${IGDRCL_BUILD_DIR}/config.h)
|
||||
configure_file(compiler.config.h.in ${IGDRCL_BUILD_DIR}/compiler.config.h)
|
||||
|
||||
Reference in New Issue
Block a user