diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/dumb/check-for-math-lib.patch | |
Diffstat (limited to 'vcpkg/ports/dumb/check-for-math-lib.patch')
| -rw-r--r-- | vcpkg/ports/dumb/check-for-math-lib.patch | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/vcpkg/ports/dumb/check-for-math-lib.patch b/vcpkg/ports/dumb/check-for-math-lib.patch new file mode 100644 index 0000000..7365dad --- /dev/null +++ b/vcpkg/ports/dumb/check-for-math-lib.patch @@ -0,0 +1,16 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index a793bba..6fd094c 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -223,7 +223,10 @@ IF(CMAKE_SYSTEM_NAME STREQUAL "Darwin") + set_target_properties(dumb PROPERTIES INSTALL_NAME_DIR ${CMAKE_INSTALL_FULL_LIBDIR}) + ENDIF(CMAKE_SYSTEM_NAME STREQUAL "Darwin") + ++find_library(HAS_MATH_LIB NAMES "m") ++if(HAS_MATH_LIB) + target_link_libraries(dumb m) ++endif() + + install(FILES ${PKG_CONFIG_FILE} DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig) + install(FILES ${INSTALL_HEADERS} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}) + |