Skip to content

Commit

Permalink
Merge pull request #3343 from OSGeo/backport-3341-to-9.1
Browse files Browse the repository at this point in the history
[Backport 9.1] Build: link geodtest against libm when available (fixes #3311)
  • Loading branch information
rouault authored Sep 24, 2022
2 parents 3ec6b92 + db126a6 commit dde3af1
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 dde3af1

Please sign in to comment.