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 Sep 24, 2022
2 parents a3c8423 + 5958919 commit 60dc551
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 60dc551

Please sign in to comment.