Skip to content

Commit

Permalink
if(WIN32) add shell32 and ole32 libraries in lib_proj.cmake
Browse files Browse the repository at this point in the history
to fix missing symbols at link time for windows target as described in #2983
  • Loading branch information
gitartpiano authored Dec 4, 2023
1 parent 167e99d commit 2ee202f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/lib_proj.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -438,6 +438,13 @@ set_target_properties(proj
set(PROJ_LIBRARIES proj)
# hack, required for test/unit
set(PROJ_LIBRARIES ${PROJ_LIBRARIES} PARENT_SCOPE)
if(WIN32)
target_link_libraries (proj
PRIVATE
shell32.lib
ole32.lib
)
endif()
if(UNIX)
find_library(M_LIB m)
if(M_LIB)
Expand Down

0 comments on commit 2ee202f

Please sign in to comment.