Skip to content

Commit

Permalink
Merge pull request #3974 from gitartpiano/master
Browse files Browse the repository at this point in the history
if(WIN32) add shell32 and ole32 libraries in lib_proj.cmake
  • Loading branch information
rouault authored Dec 8, 2023
2 parents decf6af + 2ee202f commit f33434b
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 f33434b

Please sign in to comment.