Skip to content

Commit

Permalink
cmake build: set CURL_ENABLED definition on projinfo build (#2404)
Browse files Browse the repository at this point in the history
Fixes projinfo operation, when --remote-data command line option is parsed.
  • Loading branch information
ollira authored Nov 2, 2020
1 parent 3b7c3a6 commit dd829c9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/bin_projinfo.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,7 @@ install(TARGETS binprojinfo
if(MSVC AND BUILD_SHARED_LIBS)
target_compile_definitions(binprojinfo PRIVATE PROJ_MSVC_DLL_IMPORT=1)
endif()

if(CURL_ENABLED)
target_compile_definitions(binprojinfo PRIVATE -DCURL_ENABLED)
endif()

0 comments on commit dd829c9

Please sign in to comment.