Skip to content

Commit

Permalink
Merge pull request #3341 from rouault/fix_3311
Browse files Browse the repository at this point in the history
Build: link geodtest against libm when available (fixes #3311)
  • Loading branch information
rouault authored and github-actions[bot] committed Sep 24, 2022
1 parent 3ec6b92 commit db126a6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

add_executable(geodtest geodtest.c)
target_link_libraries(geodtest ${PROJ_LIBRARIES})
if(HAVE_LIBM)
target_link_libraries(geodtest m)
endif()

add_executable(geodsigntest geodsigntest.c)
# geodsigntest includes geodesic.c directly so it doesn't need to link
Expand Down

0 comments on commit db126a6

Please sign in to comment.