set(BUILD_SHARED_LIBS            OFF CACHE INTERNAL "")
set(BUILD_FRAMEWORK              OFF CACHE INTERNAL "")
set(BUILD_TESTING                OFF CACHE INTERNAL "")
set(INSTALL_DOCS                 OFF CACHE INTERNAL "")
set(INSTALL_PKG_CONFIG_MODULE    OFF CACHE INTERNAL "")
set(INSTALL_CMAKE_PACKAGE_MODULE OFF CACHE INTERNAL "")
set(BUILD_CXXLIBS                OFF CACHE INTERNAL "")
set(BUILD_PROGRAMS               OFF CACHE INTERNAL "")
set(BUILD_EXAMPLES               OFF CACHE INTERNAL "")
set(BUILD_DOCS                   OFF CACHE INTERNAL "")
set(WITH_STACK_PROTECTOR         OFF CACHE INTERNAL "")
set(INSTALL_MANPAGES             OFF CACHE INTERNAL "")
set(INSTALL_PKGCONFIG_MODULES    OFF CACHE INTERNAL "")
set(INSTALL_CMAKE_CONFIG_MODULE  OFF CACHE INTERNAL "")
set(WITH_OGG                     OFF CACHE INTERNAL "")

if(MINGW)
    add_definitions(-DHAVE_FSEEKO)
endif()

captal_download_submodule(swell/external/flac TRUE)
add_subdirectory(external/flac EXCLUDE_FROM_ALL)

unset(BUILD_SHARED_LIBS            CACHE)
unset(BUILD_FRAMEWORK              CACHE)
unset(BUILD_TESTING                CACHE)
unset(INSTALL_DOCS                 CACHE)
unset(INSTALL_PKG_CONFIG_MODULE    CACHE)
unset(INSTALL_CMAKE_PACKAGE_MODULE CACHE)
unset(BUILD_CXXLIBS                CACHE)
unset(BUILD_PROGRAMS               CACHE)
unset(BUILD_EXAMPLES               CACHE)
unset(BUILD_DOCS                   CACHE)
unset(WITH_STACK_PROTECTOR         CACHE)
unset(INSTALL_MANPAGES             CACHE)
unset(INSTALL_PKGCONFIG_MODULES    CACHE)
unset(INSTALL_CMAKE_CONFIG_MODULE  CACHE)
unset(WITH_OGG                     CACHE)
