From ba0bce0fa7b32aae9cc315f1c6c967e9469bb461 Mon Sep 17 00:00:00 2001 From: Markus Blatt Date: Tue, 11 Jan 2022 20:08:25 +0100 Subject: [PATCH] Include config.h in clSources.cpp to include correct openCL header. Otherwise the definitions determined by CMake are not available to opm/simulators/linalg/bda/opencl.hpp and choosing the correct header might fail. On my system this at least fixes a warning. Fallout from #3749 --- opencl-source-provider.cmake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/opencl-source-provider.cmake b/opencl-source-provider.cmake index b03b68de9..7002329b0 100644 --- a/opencl-source-provider.cmake +++ b/opencl-source-provider.cmake @@ -13,7 +13,8 @@ endif() set(CL_SRC_FILE ${PROJECT_BINARY_DIR}/clSources.cpp) file(WRITE ${CL_SRC_FILE} "// This file is auto-generated. Do not edit!\n\n") -file(APPEND ${CL_SRC_FILE} "#include \"${BDA_DIR}/openclKernels.hpp\"\n\n") +file(APPEND ${CL_SRC_FILE} "#include \n\n") +file(APPEND ${CL_SRC_FILE} "#include <${BDA_DIR}/openclKernels.hpp>\n\n") file(APPEND ${CL_SRC_FILE} "namespace Opm\{\n\n") file(APPEND ${CL_SRC_FILE} "namespace Accelerator\{\n\n")