Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 14 additions & 12 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -603,18 +603,20 @@ target_link_libraries (gshhg_version ${NETCDF_LIBRARIES})
# script2verbatim for removing comments, replacing -ps from example scripts
add_executable (script2verbatim script2verbatim.c)

option(WITH_GMT_UPDATE "Build and install gmt_update executable" ON)
if (WITH_GMT_UPDATE)
# gmt_update — standalone binary updater. Deliberately does NOT link against
# libgmt/pslib so that those DLLs are NOT held open by this process and can be
# replaced on Windows. Uses only libcurl + an embedded public-domain SHA-256.
add_executable (gmt_update gmt_update.c sha256.c)
target_include_directories (gmt_update PRIVATE ${CURL_INCLUDE_DIRS})
target_link_libraries (gmt_update ${CURL_LIBRARIES})
if (WIN32)
target_link_libraries (gmt_update rstrtmgr)
endif (WIN32)
install (TARGETS gmt_update RUNTIME DESTINATION ${GMT_BINDIR} COMPONENT Runtime)
if (MSVC)
option(WITH_GMT_UPDATE "Build and install gmt_update executable" ON)
if (WITH_GMT_UPDATE)
# gmt_update — standalone binary updater. Deliberately does NOT link against
# libgmt/pslib so that those DLLs are NOT held open by this process and can be
# replaced on Windows. Uses only libcurl + an embedded public-domain SHA-256.
add_executable (gmt_update gmt_update.c sha256.c)
target_include_directories (gmt_update PRIVATE ${CURL_INCLUDE_DIRS})
target_link_libraries (gmt_update ${CURL_LIBRARIES})
if (WIN32)
target_link_libraries (gmt_update rstrtmgr)
endif (WIN32)
install (TARGETS gmt_update RUNTIME DESTINATION ${GMT_BINDIR} COMPONENT Runtime)
endif()
endif()


Expand Down
Loading