Skip to content

Commit

Permalink
fix: do not link to math library on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
ntamas committed Sep 11, 2023
1 parent 8508d3d commit 6f5ce53
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,11 @@ find_package(PNG)
find_package(TIFF)
find_package(GEOTIFF)
find_package(PROJ CONFIG)
find_library(MATH_LIBRARY m)
if(WIN32)
set(MATH_LIBRARY)
else()
find_library(MATH_LIBRARY m)
endif()

# Turn on all compiler warnings
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall")
Expand Down

0 comments on commit 6f5ce53

Please sign in to comment.