mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-23 23:49:02 +00:00
A few tweaks to the CMake fixes from the internal repo
Still very hacky but allows to get things going. Signed-off-by: Kevin Petit <kevin.petit@arm.com>
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
cmake_minimum_required(VERSION 3.0)
|
||||
|
||||
if(MSVC)
|
||||
# The CTS will not link on MSVC 32-bit builds. To workaround this, add the
|
||||
# /LARGEADDRESSAWARE option as a linker flag. This is automatically set for
|
||||
@@ -26,6 +28,11 @@ else()
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CTS_EXTRA_FLAGS}")
|
||||
endif()
|
||||
|
||||
include_directories(BEFORE SYSTEM ${CLConform_HEADERS})
|
||||
link_directories(${CLConform_LIB_DIR})
|
||||
|
||||
add_definitions(-DCL_TARGET_OPENCL_VERSION=120)
|
||||
|
||||
add_custom_target(OpenCLCTS)
|
||||
|
||||
add_subdirectory(allocations)
|
||||
@@ -58,6 +65,3 @@ add_subdirectory(select)
|
||||
add_subdirectory(thread_dimensions)
|
||||
add_subdirectory(vec_align)
|
||||
add_subdirectory(vec_step)
|
||||
|
||||
# Add any extension folders
|
||||
add_subdirectory(spir)
|
||||
|
||||
Reference in New Issue
Block a user