Skip to content

Commit

Permalink
fix libccd not found LIBM problem
Browse files Browse the repository at this point in the history
  • Loading branch information
tokomine committed Oct 27, 2023
1 parent 42e532a commit 34e11a9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/l/libccd/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ package("libccd")
table.insert(configs, "-DBUILD_SHARED_LIBS=" .. (package:config("shared") and "ON" or "OFF"))
table.insert(configs, "-DCCD_HIDE_ALL_SYMBOLS=" .. (package:config("shared") and "OFF" or "ON"))
table.insert(configs, "-DENABLE_DOUBLE_PRECISION=" .. (package:config("double_precision") and "ON" or "OFF"))

io.replace("src/CMakeLists.txt", " find_library(LIBM_LIBRARY NAMES m)", "", {plain = true})
io.replace("src/CMakeLists.txt", " if(NOT LIBM_LIBRARY)", "if(OFF)", {plain = true})
io.replace("src/CMakeLists.txt", " target_link_libraries(ccd \"${LIBM_LIBRARY}\")", "", {plain = true})


import("package.tools.cmake").install(package, configs)
end)

Expand Down

0 comments on commit 34e11a9

Please sign in to comment.