aboutsummaryrefslogtreecommitdiff
path: root/ports/clfft
diff options
context:
space:
mode:
authorRobert Schumacher <roschuma@microsoft.com>2019-11-22 09:47:40 -0800
committerGitHub <noreply@github.com>2019-11-22 09:47:40 -0800
commit45f4b820e5743b89bca3508ba2028cdd5d8bbd17 (patch)
treef874a8c4a7392309bdbb86447288597ec0a4a281 /ports/clfft
parent62d67d3bf8eeff1afa8009041fd08b8822676b7b (diff)
parent8831e8f25f1ff6546ee4a5291b91d599421637b3 (diff)
downloadvcpkg-45f4b820e5743b89bca3508ba2028cdd5d8bbd17.tar.gz
vcpkg-45f4b820e5743b89bca3508ba2028cdd5d8bbd17.zip
Merge branch 'master' into vcpkg_nuget
Diffstat (limited to 'ports/clfft')
-rw-r--r--ports/clfft/CONTROL2
-rw-r--r--ports/clfft/portfile.cmake21
2 files changed, 10 insertions, 13 deletions
diff --git a/ports/clfft/CONTROL b/ports/clfft/CONTROL
index d65da1995..522a641e4 100644
--- a/ports/clfft/CONTROL
+++ b/ports/clfft/CONTROL
@@ -1,5 +1,5 @@
Source: clfft
-Version: 2.12.2
+Version: 2.12.2-2
Build-Depends: opencl
Homepage: https://github.com/clMathLibraries/clFFT
Description: clFFT is an OpenCL 1.2 accelerated Fast Fourier Transform library.
diff --git a/ports/clfft/portfile.cmake b/ports/clfft/portfile.cmake
index 4e314b5d9..c64baf124 100644
--- a/ports/clfft/portfile.cmake
+++ b/ports/clfft/portfile.cmake
@@ -6,11 +6,8 @@ vcpkg_from_github(
REF v2.12.2
SHA512 19e9a4e06f76ae7c7808d1188677d5553c43598886a75328b7801ab2ca68e35206839a58fe2f958a44a6f7c83284dc9461cd0e21c37d1042bf82e24aad066be8
HEAD_REF master
-)
-
-vcpkg_apply_patches(
- SOURCE_PATH ${SOURCE_PATH}
- PATCHES ${CMAKE_CURRENT_LIST_DIR}/tweak-install.patch
+ PATCHES
+ tweak-install.patch
)
vcpkg_configure_cmake(
@@ -26,12 +23,12 @@ vcpkg_install_cmake()
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
-file(INSTALL
- "${SOURCE_PATH}/LICENSE"
- DESTINATION
- ${CURRENT_PACKAGES_DIR}/share/clfft/copyright
-)
+if(VCPKG_TARGET_IS_WINDOWS)
+ vcpkg_fixup_cmake_targets(CONFIG_PATH CMake)
+else()
+ vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/clFFT)
+endif()
-vcpkg_fixup_cmake_targets(CONFIG_PATH "CMake")
+vcpkg_copy_pdbs()
-vcpkg_copy_pdbs() \ No newline at end of file
+file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION ${CURRENT_PACKAGES_DIR}/share/clfft/copyright)