# $Id: CMakeLists.efetch.lib.txt 650149 2022-05-17 20:57:34Z ucko $

NCBI_begin_lib(efetch)
  NCBI_dataspecs(efetch.xsd)
  NCBI_uses_toolkit_libraries(pubmed medline biblio general xser xutil xncbi)
  NCBI_project_watchers(gotvyans)
NCBI_end_lib(_result)

if(_result)
  if(MSVC)
    target_compile_options(efetch PRIVATE /bigobj)
  elseif(CYGWIN AND "${CMAKE_BUILD_TYPE}" STREQUAL "Debug")
    # Already have -Wa,-mbig-obj globally, but it's no longer enough.
    set_source_files_properties(${NCBI_CURRENT_SOURCE_DIR}/efetch___.cpp
        PROPERTIES COMPILE_OPTIONS "-O")
  endif()
endif()

