aboutsummaryrefslogtreecommitdiff
path: root/ports
diff options
context:
space:
mode:
authorgeorg-emg <71000124+georg-emg@users.noreply.github.com>2021-03-26 19:39:45 +0100
committerGitHub <noreply@github.com>2021-03-26 11:39:45 -0700
commit73edefd8775d3897914b68b3664d19a81de2991e (patch)
tree75c091fe8073d2700f9c34319556618aef17cfe4 /ports
parentbe656b22a454b5ef3bb56113f5bf4c53b75fdba3 (diff)
downloadvcpkg-73edefd8775d3897914b68b3664d19a81de2991e.tar.gz
vcpkg-73edefd8775d3897914b68b3664d19a81de2991e.zip
[ryu] ryuConfig.cmake now selects the correct libraries when cross compiling (#16858)
* ryuConfig.cmake now checks the target rather than the host system to decide whether to install ryu.lib or linryu.a * executed vcpkg x-add-version ryu * Update ports/ryu/ryuConfig.cmake Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * executed vcpkg x-add-version ryu Co-authored-by: Robert Schumacher <roschuma@microsoft.com>
Diffstat (limited to 'ports')
-rw-r--r--ports/ryu/ryuConfig.cmake12
-rw-r--r--ports/ryu/vcpkg.json2
2 files changed, 9 insertions, 5 deletions
diff --git a/ports/ryu/ryuConfig.cmake b/ports/ryu/ryuConfig.cmake
index 43421ff9e..196301e4f 100644
--- a/ports/ryu/ryuConfig.cmake
+++ b/ports/ryu/ryuConfig.cmake
@@ -13,10 +13,14 @@ get_filename_component(ROOT "${CMAKE_CURRENT_LIST_FILE}" PATH)
get_filename_component(ROOT "${ROOT}" PATH)
get_filename_component(ROOT "${ROOT}" PATH)
-if (CMAKE_HOST_WIN32)
-set_library_target("RYU" "ryu" "${ROOT}/debug/lib/ryu.lib" "${ROOT}/lib/ryu.lib" "${ROOT}/include/")
-set_library_target("RYU" "ryu_printf" "${ROOT}/debug/lib/ryu_printf.lib" "${ROOT}/lib/ryu_printf.lib" "${ROOT}/include/")
+if (TRUE)
+find_library(RYU_RELEASE_LIB ryu PATHS "${ROOT}/lib" NO_DEFAULT_PATH)
+find_library(RYU_DEBUG_LIB ryu PATHS "${ROOT}/debug/lib" NO_DEFAULT_PATH)
+find_library(RYUPF_RELEASE_LIB ryu_printf PATHS "${ROOT}/lib" NO_DEFAULT_PATH)
+find_library(RYUPF_DEBUG_LIB ryu_printf PATHS "${ROOT}/debug/lib" NO_DEFAULT_PATH)
+set_library_target("RYU" "ryu" "${RYU_DEBUG_LIB} "${RYU_RELEASE_LIB}" "${ROOT}/include/")
+set_library_target("RYU" "ryu_printf" "${RYUPF_DEBUG_LIB} "${RYUPF_RELEASE_LIB}" "${ROOT}/include/")
else()
set_library_target("RYU" "ryu" "${ROOT}/debug/lib/libryu.a" "${ROOT}/lib/libryu.a" "${ROOT}/include/")
set_library_target("RYU" "ryu_printf" "${ROOT}/debug/lib/libryu_printf.a" "${ROOT}/lib/libryu_printf.a" "${ROOT}/include/")
-endif() \ No newline at end of file
+endif()
diff --git a/ports/ryu/vcpkg.json b/ports/ryu/vcpkg.json
index e7d7619aa..93370f3a7 100644
--- a/ports/ryu/vcpkg.json
+++ b/ports/ryu/vcpkg.json
@@ -1,7 +1,7 @@
{
"name": "ryu",
"version-string": "2.0",
- "port-version": 3,
+ "port-version": 4,
"description": "Ryu generates the shortest decimal representation of a floating point number that maintains round-trip safety.",
"homepage": "https://github.com/ulfjack/ryu",
"supports": "!(uwp | arm | x86)"