From 5190c5a20858b12163eb8769b6fa2647d6561c81 Mon Sep 17 00:00:00 2001 From: Harald van Dijk Date: Mon, 18 Dec 2023 12:20:18 +0000 Subject: [PATCH] [NFC] Silence CMake. When I renamed Common.h to Common.h.in, I left a reference to include/Common.h untouched which resulted in a CMake warning: CMake Warning (dev) at cmake/AddCA.cmake:543 (add_executable): Policy CMP0115 is not set: Source file extensions must be explicit. Run "cmake --help-policy CMP0115" for policy details. Use the cmake_policy command to set the policy and suppress this warning. File: oneapi-construction-kit/source/cl/test/UnitCL/include/Common.h.in Call Stack (most recent call first): source/cl/cmake/AddCACL.cmake:92 (add_ca_executable) source/cl/test/UnitCL/CMakeLists.txt:59 (add_ca_cl_executable) This warning is for project developers. Use -Wno-dev to suppress it. Like Device.h, the reference should be explicitly to {CMAKE_CURRENT_BINARY_DIR}/include/Common.h. --- source/cl/test/UnitCL/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/cl/test/UnitCL/CMakeLists.txt b/source/cl/test/UnitCL/CMakeLists.txt index 8da915538..b6a56c0a5 100644 --- a/source/cl/test/UnitCL/CMakeLists.txt +++ b/source/cl/test/UnitCL/CMakeLists.txt @@ -58,7 +58,7 @@ configure_file( add_ca_cl_executable(UnitCL # General testing machinery - include/Common.h source/Common.cpp + ${CMAKE_CURRENT_BINARY_DIR}/include/Common.h source/Common.cpp include/EventWaitList.h ${CMAKE_CURRENT_BINARY_DIR}/include/Device.h source/main.cpp