mirror of
https://github.com/cemu-project/vcpkg.git
synced 2024-12-18 00:28:21 +00:00
[libpng] Replace find_library() with a simple set() for linking libm on UNIX (#8079)
This commit is contained in:
parent
16c0aa4579
commit
8887f6c09c
@ -1,5 +1,5 @@
|
||||
Source: libpng
|
||||
Version: 1.6.37-3
|
||||
Version: 1.6.37-4
|
||||
Build-Depends: zlib
|
||||
Homepage: https://github.com/glennrp/libpng
|
||||
Description: libpng is a library implementing an interface for reading and writing PNG (Portable Network Graphics) format files.
|
||||
|
12
ports/libpng/fix-libm-unix.patch
Normal file
12
ports/libpng/fix-libm-unix.patch
Normal file
@ -0,0 +1,12 @@
|
||||
diff -ur a/CMakeLists.txt b/CMakeLists.txt
|
||||
--- a/CMakeLists.txt 2019-04-14 20:10:32.000000000 +0200
|
||||
+++ b/CMakeLists.txt 2019-09-06 14:14:39.425498139 +0200
|
||||
@@ -44,7 +44,7 @@
|
||||
endif()
|
||||
|
||||
if(UNIX AND NOT APPLE AND NOT BEOS AND NOT HAIKU)
|
||||
- find_library(M_LIBRARY m)
|
||||
+ set(M_LIBRARY m)
|
||||
else()
|
||||
# libm is not needed and/or not available
|
||||
set(M_LIBRARY "")
|
@ -8,6 +8,7 @@ vcpkg_from_github(
|
||||
HEAD_REF master
|
||||
PATCHES
|
||||
use-abort-on-all-platforms.patch
|
||||
fix-libm-unix.patch
|
||||
)
|
||||
|
||||
if(VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
|
||||
|
Loading…
Reference in New Issue
Block a user