Skip to content

Commit 99c78d7

Browse files
committed
Define OpenCL version for fake_bsp tests
../../include/CL/cl_version.h:22:104: note: #pragma message: cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 300 (OpenCL 3.0) #pragma message("cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 300 (OpenCL 3.0)")
1 parent 78959e8 commit 99c78d7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/fake_bsp/CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,19 @@
44
add_library(fakegoodbsp SHARED fakegoodbsp.cpp)
55
target_include_directories(fakegoodbsp PRIVATE "${CMAKE_SOURCE_DIR}/src")
66
target_link_libraries(fakegoodbsp PRIVATE acl_headers CppUTest test_acl_test_header)
7+
target_compile_definitions(fakegoodbsp PRIVATE
8+
CL_TARGET_OPENCL_VERSION=300
9+
)
710
if(WIN32)
811
target_compile_definitions(fakegoodbsp PRIVATE AOCL_MMD_CALL=__declspec\(dllexport\))
912
endif()
1013

1114
add_library(missingfuncbsp SHARED missingfuncbsp.cpp)
1215
target_include_directories(missingfuncbsp PRIVATE "${CMAKE_SOURCE_DIR}/src")
1316
target_link_libraries(missingfuncbsp PRIVATE acl_headers CppUTest test_acl_test_header)
17+
target_compile_definitions(missingfuncbsp PRIVATE
18+
CL_TARGET_OPENCL_VERSION=300
19+
)
1420
if(WIN32)
1521
target_compile_definitions(missingfuncbsp PRIVATE AOCL_MMD_CALL=__declspec\(dllexport\))
1622
endif()

0 commit comments

Comments
 (0)