Hello all,
forgive me as this is quite a noob question mainly about CMake Files. This is my first SYCL project and I am trying to include the computeCPP-SDK in my project as written in the guide on the website.
My CMakeLists.txt is as follows -
cmake_minimum_required(VERSION 3.17)
project(computecpp_test)
set(CMAKE_MODULE_PATH /home/atharva/computecpp-sdk/cmake/Modules/)
include(FindComputeCpp)
include_directories($(COMPUTECPP_INCLUDE_DIRECTORY))
add_executable(computecpp_test main.cpp)
add_sycl_to_target(computecpp_test main.cpp ${CMAKE_CURRENT_BINARY_DIR})
However, I get the following error in the cmake, which is -
CMake Error at /home/atharva/computecpp-sdk/cmake/Modules/FindComputeCpp.cmake:457 (target_compile_definitions):
Cannot specify compile definitions for target "INTERFACE" which is not
built by this project.
Could anyone please tell what could be going wrong?
TIA