Skip to content

Commit

Permalink
[double-conversion] Fix build failure when VCPKG_BUILD_TYPE is set
Browse files Browse the repository at this point in the history
  • Loading branch information
past-due committed Mar 19, 2018
1 parent 5968ebf commit 9d02fb0
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions ports/double-conversion/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,14 @@ vcpkg_install_cmake()
# Rename exported target files into something vcpkg_fixup_cmake_targets expects
if(NOT VCPKG_USE_HEAD_VERSION)
if(EXISTS ${CURRENT_PACKAGES_DIR}/CMake)
file(RENAME ${CURRENT_PACKAGES_DIR}/debug/CMake/double-conversionLibraryDepends-debug.cmake
${CURRENT_PACKAGES_DIR}/debug/CMake/double-conversionTargets-debug.cmake)
file(RENAME ${CURRENT_PACKAGES_DIR}/CMake/double-conversionLibraryDepends-release.cmake
${CURRENT_PACKAGES_DIR}/CMake/double-conversionTargets-release.cmake)
if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "debug")
file(RENAME ${CURRENT_PACKAGES_DIR}/debug/CMake/double-conversionLibraryDepends-debug.cmake
${CURRENT_PACKAGES_DIR}/debug/CMake/double-conversionTargets-debug.cmake)
endif()
if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "release")
file(RENAME ${CURRENT_PACKAGES_DIR}/CMake/double-conversionLibraryDepends-release.cmake
${CURRENT_PACKAGES_DIR}/CMake/double-conversionTargets-release.cmake)
endif()
file(RENAME ${CURRENT_PACKAGES_DIR}/CMake/double-conversionLibraryDepends.cmake
${CURRENT_PACKAGES_DIR}/CMake/double-conversionTargets.cmake)

Expand Down

0 comments on commit 9d02fb0

Please sign in to comment.