examples/conformance/CMake: add options to use custom git repository
@@ -77,11 +77,22 @@ else()
set(CTS_OPENCL_LIBRARY "-DOPENCL_LIBRARIES=$<TARGET_FILE_NAME:${POCL_LIBRARY_NAME}>")
endif()
+if(CUSTOM_CTS_GIT_REPO)
+ set(CTS_GIT_REPO "${CUSTOM_CTS_GIT_REPO}")
+else()
+ set(CTS_GIT_REPO "https://github.com/KhronosGroup/OpenCL-CTS")
+endif()
+if(CUSTOM_CTS_GIT_TAG)
+ set(CTS_GIT_TAG "${CUSTOM_CTS_GIT_TAG}")
+else()
+ set(CTS_GIT_TAG "v2022-10-27-00")
+endif()
+
ExternalProject_Add(
${TS_NAME}
- PREFIX "${TS_BASEDIR}" # TODO pocl/CTS
- GIT_REPOSITORY "https://github.com/KhronosGroup/OpenCL-CTS"
- GIT_TAG "v2022-10-27-00"
+ PREFIX "${TS_BASEDIR}"
+ GIT_REPOSITORY "${CTS_GIT_REPO}"
+ GIT_TAG "${CTS_GIT_TAG}"
CONFIGURE_COMMAND ${CMAKE_COMMAND}
-DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}
-DD3D10_IS_SUPPORTED=0 -DD3D11_IS_SUPPORTED=0
