Fix crc32c CMake configuration directory. (#4509)

* Fix crc32c CMake configuration directory.

The port was installing the CMake configuration files for Crc32c in
share/crc32c/Crc32c/Crc32cConfig.cmake, where find_package() cannot
find them.  They should be installed in share/crc32c/Crc32cConfig.cmake.

* [crc32] Lowercase share directory
This commit is contained in:
Carlos O'Ryan 2018-10-20 13:19:50 -07:00 committed by Robert Schumacher
parent 2e0338ce93
commit 12a0a9989b
2 changed files with 7 additions and 11 deletions

View File

@ -1,3 +1,3 @@
Source: crc32c
Version: 1.0.5
Version: 1.0.5-1
Description: CRC32C implementation with support for CPU-specific acceleration instructions.

View File

@ -1,9 +1,6 @@
include(vcpkg_common_functions)
if(VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
message(WARNING "building static")
set(VCPKG_LIBRARY_LINKAGE static)
endif()
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
@ -13,24 +10,23 @@ vcpkg_from_github(
HEAD_REF master
)
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
OPTIONS
-DCRC32C_BUILD_TESTS=OFF
-DCRC32C_BUILD_BENCHMARKS=OFF
-DCRC32C_USE_GLOG=OFF
-DCRC32C_BUILD_TESTS=OFF
-DCRC32C_BUILD_BENCHMARKS=OFF
-DCRC32C_USE_GLOG=OFF
)
vcpkg_install_cmake()
vcpkg_copy_pdbs()
vcpkg_fixup_cmake_targets(CONFIG_PATH "lib/cmake")
vcpkg_fixup_cmake_targets(CONFIG_PATH "lib/cmake/Crc32c")
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin ${CURRENT_PACKAGES_DIR}/debug/bin)
endif()