File: libm.patch

package info (click to toggle)
libahp-xc 1.4.7-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 424 kB
  • sloc: ansic: 1,925; python: 167; sh: 26; makefile: 3
file content (22 lines) | stat: -rw-r--r-- 896 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Description: revert 705681ac64d0fdeb8b60a1903a70937b18141492
Index: libahp-xc/CMakeLists.txt
===================================================================
--- libahp-xc.orig/CMakeLists.txt	2026-03-05 18:54:24.522038455 +0100
+++ libahp-xc/CMakeLists.txt	2026-03-05 18:57:11.007600360 +0100
@@ -6,6 +6,7 @@
 
 include(GNUInstallDirs)
 
+find_package(M REQUIRED)
 find_package(Threads REQUIRED)
 
 set(LIB_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}")
@@ -40,7 +41,7 @@
    set_target_properties(ahp_xc PROPERTIES VERSION ${AHPXC_VERSION} SOVERSION ${AHPXC_SOVERSION})
 endif(WIN32)
 
-target_link_libraries(ahp_xc ${CMAKE_THREAD_LIBS_INIT})
+target_link_libraries(ahp_xc ${CMAKE_THREAD_LIBS_INIT} ${M_LIB})
 
 install(TARGETS ahp_xc LIBRARY DESTINATION ${LIB_INSTALL_DIR})
 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/ahp_xc.h DESTINATION ${CMAKE_INSTALL_PREFIX}/include/ahp)