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:
Kevin Petit
2018-11-12 11:35:23 +00:00
committed by Kévin Petit
parent b67a5f3761
commit d90bb74206
3 changed files with 7 additions and 98 deletions

View File

@@ -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)