aboutsummaryrefslogtreecommitdiff
path: root/ports/opencl
diff options
context:
space:
mode:
Diffstat (limited to 'ports/opencl')
-rw-r--r--ports/opencl/CONTROL6
-rw-r--r--ports/opencl/portfile.cmake7
2 files changed, 5 insertions, 8 deletions
diff --git a/ports/opencl/CONTROL b/ports/opencl/CONTROL
index 89d4ad0e1..633c95e51 100644
--- a/ports/opencl/CONTROL
+++ b/ports/opencl/CONTROL
@@ -1,3 +1,3 @@
-Source: opencl
-Version: 2.2 (2017.07.18)
-Description: C/C++ headers and ICD loader (Installable Client Driver) for OpenCL
+Source: opencl
+Version: 2.2 (2017.07.18)-1
+Description: C/C++ headers and ICD loader (Installable Client Driver) for OpenCL
diff --git a/ports/opencl/portfile.cmake b/ports/opencl/portfile.cmake
index f7e1bdd2f..54096512f 100644
--- a/ports/opencl/portfile.cmake
+++ b/ports/opencl/portfile.cmake
@@ -1,5 +1,7 @@
include(vcpkg_common_functions)
+vcpkg_check_linkage(ONLY_DYNAMIC_LIBRARY)
+
# OpenCL C headers
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
@@ -52,11 +54,6 @@ vcpkg_from_github(
HEAD_REF master
)
-if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
- message(STATUS "Building the ICD loader as a static library is not supported. Building as DLLs instead.")
- set(VCPKG_LIBRARY_LINKAGE "dynamic")
-endif()
-
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA