From fee08985dc26c02ec681acfc0963d9661ef2eee4 Mon Sep 17 00:00:00 2001 From: Artur Harasimiuk Date: Fri, 22 Jun 2018 09:19:08 +0200 Subject: [PATCH] properly handle includes when IGC__IGC_TARGETS is defined Change-Id: I518a33ae97950467965126e55bc93e644e439934 Signed-off-by: Artur Harasimiuk --- CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5696afe846..493bf5cefd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -237,6 +237,12 @@ if(NOT IGC__IGC_TARGETS) else() message(FATAL_ERROR "Intel Graphics Compiler not found!") endif() +else() + set(IGDRCL__IGC_TARGETS "${IGC__IGC_TARGETS}") + foreach(TARGET_tmp ${IGDRCL__IGC_TARGETS}) + list(APPEND IGDRCL__IGC_INCLUDE_DIR $) + endforeach(TARGET_tmp) + message(STATUS "IGC targets: ${IGDRCL__IGC_TARGETS}") endif() if(WIN32)