diff options
| author | Phoebe <20694052+PhoebeHui@users.noreply.github.com> | 2020-11-14 05:41:47 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-13 13:41:47 -0800 |
| commit | 8e3e1a1f9a1542325176442e1a931ec2f8c494cb (patch) | |
| tree | ab8c1f7c0fceef086e092957d759b3285180d98e | |
| parent | 4073d297e1b07b4ccbadd053680327bd13afd3d0 (diff) | |
| download | vcpkg-8e3e1a1f9a1542325176442e1a931ec2f8c494cb.tar.gz vcpkg-8e3e1a1f9a1542325176442e1a931ec2f8c494cb.zip | |
[opencl] Remove feature wdk (#14536)
| -rw-r--r-- | ports/opencl/CONTROL | 5 | ||||
| -rw-r--r-- | ports/opencl/portfile.cmake | 17 |
2 files changed, 3 insertions, 19 deletions
diff --git a/ports/opencl/CONTROL b/ports/opencl/CONTROL index e554fe5ee..edbe7c80c 100644 --- a/ports/opencl/CONTROL +++ b/ports/opencl/CONTROL @@ -1,8 +1,5 @@ Source: opencl Version: 2.2 -Port-Version: 4 +Port-Version: 5 Homepage: https://github.com/KhronosGroup/OpenCL-Headers Description: C/C++ headers and ICD loader (Installable Client Driver) for OpenCL - -Feature: wdk -Description: Windows Driver Kit support diff --git a/ports/opencl/portfile.cmake b/ports/opencl/portfile.cmake index dc1ea069c..b0f09f4f9 100644 --- a/ports/opencl/portfile.cmake +++ b/ports/opencl/portfile.cmake @@ -1,12 +1,3 @@ -if("wdk" IN_LIST FEATURES) - if(NOT VCPKG_TARGET_IS_WINDOWS) - message(FATAL_ERROR "Windows Driver Kit support is only available builds targeting Windows") - endif() - set(WITH_WDK ON) -else() - set(WITH_WDK OFF) -endif() - vcpkg_from_github( OUT_SOURCE_PATH SOURCE_PATH REPO KhronosGroup/OpenCL-Headers @@ -15,11 +6,7 @@ vcpkg_from_github( HEAD_REF master ) -file(INSTALL - "${SOURCE_PATH}/CL" - DESTINATION - ${CURRENT_PACKAGES_DIR}/include -) +file(INSTALL "${SOURCE_PATH}/CL" DESTINATION ${CURRENT_PACKAGES_DIR}/include) # OpenCL C++ headers vcpkg_from_github( @@ -67,7 +54,7 @@ vcpkg_configure_cmake( PREFER_NINJA OPTIONS -DOPENCL_ICD_LOADER_HEADERS_DIR=${CURRENT_PACKAGES_DIR}/include - -DOPENCL_ICD_LOADER_REQUIRE_WDK=${WITH_WDK} + -DOPENCL_ICD_LOADER_REQUIRE_WDK=OFF -DUSE_DYNAMIC_VCXX_RUNTIME=${USE_DYNAMIC_VCXX_RUNTIME} ) |
