<commit_before># -*- cmake -*-

if(INSTALL_PROPRIETARY)
  include(Prebuilt)
  use_prebuilt_binary(fmod)
endif(INSTALL_PROPRIETARY)

find_library(FMOD_LIBRARY_RELEASE
             NAMES fmod fmodvc fmod-3.75
             PATHS
             ${ARCH_PREBUILT_DIRS_RELEASE}
             ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/lib/release
             ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/lib_release
             ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/lib_release_client
             )

find_library(FMOD_LIBRARY_DEBUG
             NAMES fmod fmodvc fmod-3.75
             PATHS
             ${ARCH_PREBUILT_DIRS_DEBUG}
             ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/lib/debug
             ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/lib_debug
             )

if(FMOD_LIBRARY_RELEASE AND FMOD_LIBRARY_DEBUG)
  set(FMOD_LIBRARY debug ${FMOD_LIBRARY_DEBUG} optimized ${FMOD_LIBRARY_RELEASE})
endif(FMOD_LIBRARY_RELEASE AND FMOD_LIBRARY_DEBUG)

if (NOT FMOD_LIBRARY)
  set(FMOD_SDK_DIR CACHE PATH "Path to the FMOD SDK.")
  if (FMOD_SDK_DIR)
    find_library(FMOD_LIBRARY
                 NAMES fmodvc fmod-3.75 fmod
                 PATHS
                 ${FMOD_SDK_DIR}/api/lib
                 ${FMOD_SDK_DIR}/api
                 ${FMOD_SDK_DIR}/lib
                 ${FMOD_SDK_DIR}
                 )
  endif (FMOD_SDK_DIR)
endif (NOT FMOD_LIBRARY)

find_path(FMOD_INCLUDE_DIR fmod.h
          ${LIBS_PREBUILT_DIR}/include
          ${FMOD_SDK_DIR}/api/inc
          ${FMOD_SDK_DIR}/inc
          ${FMOD_SDK_DIR}
          )
<commit_msg>DEV-18513 - Don't fail if we have no debug FMOD libraries Reviewed by Poppy.<commit_after># -*- cmake -*-

include(Linking)

if(INSTALL_PROPRIETARY)
  include(Prebuilt)
  use_prebuilt_binary(fmod)
endif(INSTALL_PROPRIETARY)

find_library(FMOD_LIBRARY_RELEASE
             NAMES fmod fmodvc fmod-3.75
             PATHS
             ${ARCH_PREBUILT_DIRS_RELEASE}
             )

find_library(FMOD_LIBRARY_DEBUG
             NAMES fmod fmodvc fmod-3.75
             PATHS
             ${ARCH_PREBUILT_DIRS_DEBUG}
             )

if (FMOD_LIBRARY_RELEASE AND FMOD_LIBRARY_DEBUG)
  set(FMOD_LIBRARY
      debug ${FMOD_LIBRARY_DEBUG}
      optimized ${FMOD_LIBRARY_RELEASE})
elseif (FMOD_LIBRARY_RELEASE)
  set(FMOD_LIBRARY ${FMOD_LIBRARY_RELEASE})
endif (FMOD_LIBRARY_RELEASE AND FMOD_LIBRARY_DEBUG)

if (NOT FMOD_LIBRARY)
  set(FMOD_SDK_DIR CACHE PATH "Path to the FMOD SDK.")
  if (FMOD_SDK_DIR)
    find_library(FMOD_LIBRARY
                 NAMES fmodvc fmod-3.75 fmod
                 PATHS
                 ${FMOD_SDK_DIR}/api/lib
                 ${FMOD_SDK_DIR}/api
                 ${FMOD_SDK_DIR}/lib
                 ${FMOD_SDK_DIR}
                 )
  endif (FMOD_SDK_DIR)
endif (NOT FMOD_LIBRARY)

find_path(FMOD_INCLUDE_DIR fmod.h
          ${LIBS_PREBUILT_DIR}/include
          ${FMOD_SDK_DIR}/api/inc
          ${FMOD_SDK_DIR}/inc
          ${FMOD_SDK_DIR}
          )

{'fraction_non_alphanumeric': 0.08502581755593804, 'fraction_numerical': 0.007917383820998278, 'mean_word_length': 2.254199328107503, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3269682', 'n_tokens_mistral': 1137, 'n_tokens_neox': 1041, 'n_words': 154}