do not generate igc.config.h when igc-opencl package was found

this file will be provided by IGC development package when present. We
should generate it only for other cases

Change-Id: Ic11f8c74e4f0a4575b654d0afdfa7336e1fdc7d6
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
This commit is contained in:
Artur Harasimiuk
2018-06-21 07:30:07 +02:00
committed by sys_ocldev
parent 50c31872d8
commit 6540a9c96b

View File

@@ -582,6 +582,8 @@ endif(EXISTS ${IGDRCL_SOURCE_DIR}/../internal)
include(package.cmake)
configure_file(config.h.in ${IGDRCL_BUILD_DIR}/config.h)
configure_file(igc.opencl.h.in ${IGDRCL_BUILD_DIR}/igc.opencl.h)
if(NOT IGDRCL__IGC_FOUND)
configure_file(igc.opencl.h.in ${IGDRCL_BUILD_DIR}/igc.opencl.h)
endif()
configure_file(driver_version.h.in ${IGDRCL_BUILD_DIR}/driver_version.h) # Put Driver version into define
configure_file(lib_names.h.in ${IGDRCL_BUILD_DIR}/lib_names.h)