0
0
mirror of https://github.com/termux/termux-packages.git synced 2024-12-12 00:10:52 +00:00
termux-packages/packages/libccd/src-CMakeLists.txt.patch
Henrik Grimler 6824258708
fix(main/libccd): do not hardcode path to libm
And also build out of source and use " instead of '.
2022-09-24 21:30:16 +02:00

16 lines
520 B
Diff

--- ./src/CMakeLists.txt.orig 2022-09-24 19:21:35.591929038 +0000
+++ ./src/CMakeLists.txt 2022-09-24 19:21:54.019880966 +0000
@@ -49,11 +49,7 @@
$<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}>)
if(NOT WIN32)
- find_library(LIBM_LIBRARY NAMES m)
- if(NOT LIBM_LIBRARY)
- message(FATAL_ERROR "Could NOT find required library LibM")
- endif()
- target_link_libraries(ccd "${LIBM_LIBRARY}")
+ target_link_libraries(ccd m)
if(BUILD_SHARED_LIBS)
set(CCD_PKGCONFIG_EXTRA_LIBS -lm PARENT_SCOPE)
endif()