<commit_before>#####
##
## Copyright (C) 2012 by the deal.II authors
##
## This file is part of the deal.II library.
##
## <TODO: Full License information>
## This file is dual licensed under QPL 1.0 and LGPL 2.1 or any later
## version of the LGPL license.
##
## Author: <NAME> <<EMAIL>>
##
#####

#
# This file implements the DEAL_II_SETUP_TARGET macro, which is
# part of the deal.II library.
#
# Usage:
#       DEAL_II_SETUP_TARGET(target)
#
# This sets the necessary include directories, linker flags, compile
# definitions and the deal.II library the target will be linked against.
#
#

MACRO(DEAL_II_SETUP_TARGET target)

  IF(NOT DEAL_II_PROJECT_CONFIG_INCLUDED)
    MESSAGE(FATAL_ERROR
      "\nDEAL_II_SETUP_TARGET can only be called in external projects after "
      "the inclusion of deal.IIConfig.cmake. It is not intended for "
      "internal use.\n\n"
      )
  ENDIF()

  IF(NOT DEAL_II_TARGET_CONFIG_INCLUDED)
    INCLUDE(${DEAL_II_TARGET_CONFIG})
    SET(DEAL_II_PROJECT_CONFIG_INCLUDED TRUE)
  ENDIF()

  # Necessary for setting INCLUDE_DIRECTORIES via SET_TARGET_PROPERTIES
  CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8)

  GET_DIRECTORY_PROPERTY(inc_dirs_so_far INCLUDE_DIRECTORIES)
  SET_TARGET_PROPERTIES(${target} PROPERTIES
    INCLUDE_DIRECTORIES
      "${inc_dirs_so_far};${DEAL_II_EXTERNAL_INCLUDE_DIRS};${DEAL_II_INCLUDE_DIRS}"
    LINK_FLAGS
      "${DEAL_II_LINKER_FLAGS}"
    COMPILE_DEFINITIONS
      "${DEAL_II_USER_DEFINITIONS}"
    )

  #
  # Set build type dependend flags and definitions:
  #
  FOREACH(build ${DEAL_II_BUILD_TYPES})
    SET_TARGET_PROPERTIES(${target} PROPERTIES
      LINK_FLAGS_${build}
        "${DEAL_II_LINKER_FLAGS_${build}}"
      COMPILE_DEFINITIONS_${build}
        "${DEAL_II_USER_DEFINITIONS_${build}}"
      )
<commit_msg>Bugfix<commit_after>#####
##
## Copyright (C) 2012 by the deal.II authors
##
## This file is part of the deal.II library.
##
## <TODO: Full License information>
## This file is dual licensed under QPL 1.0 and LGPL 2.1 or any later
## version of the LGPL license.
##
## Author: <NAME> <<EMAIL>>
##
#####

#
# This file implements the DEAL_II_SETUP_TARGET macro, which is
# part of the deal.II library.
#
# Usage:
#       DEAL_II_SETUP_TARGET(target)
#
# This sets the necessary include directories, linker flags, compile
# definitions and the deal.II library the target will be linked against.
#
#

MACRO(DEAL_II_SETUP_TARGET target)

  IF(NOT DEAL_II_PROJECT_CONFIG_INCLUDED)
    MESSAGE(FATAL_ERROR
      "\nDEAL_II_SETUP_TARGET can only be called in external projects after "
      "the inclusion of deal.IIConfig.cmake. It is not intended for "
      "internal use.\n\n"
      )
  ENDIF()

  IF(NOT DEAL_II_TARGET_CONFIG_INCLUDED)
    INCLUDE(${DEAL_II_TARGET_CONFIG})
    SET(DEAL_II_TARGET_CONFIG_INCLUDED TRUE)
  ENDIF()

  # Necessary for setting INCLUDE_DIRECTORIES via SET_TARGET_PROPERTIES
  CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8)

  GET_DIRECTORY_PROPERTY(inc_dirs_so_far INCLUDE_DIRECTORIES)
  SET_TARGET_PROPERTIES(${target} PROPERTIES
    INCLUDE_DIRECTORIES
      "${inc_dirs_so_far};${DEAL_II_EXTERNAL_INCLUDE_DIRS};${DEAL_II_INCLUDE_DIRS}"
    LINK_FLAGS
      "${DEAL_II_LINKER_FLAGS}"
    COMPILE_DEFINITIONS
      "${DEAL_II_USER_DEFINITIONS}"
    )

  #
  # Set build type dependend flags and definitions:
  #
  FOREACH(build ${DEAL_II_BUILD_TYPES})
    SET_TARGET_PROPERTIES(${target} PROPERTIES
      LINK_FLAGS_${build}
        "${DEAL_II_LINKER_FLAGS_${build}}"
      COMPILE_DEFINITIONS_${build}
        "${DEAL_II_USER_DEFINITIONS_${build}}"
      )

{'fraction_non_alphanumeric': 0.09943820224719101, 'fraction_numerical': 0.006179775280898876, 'mean_word_length': 4.2599704579025115, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '672213', 'n_tokens_mistral': 1334, 'n_tokens_neox': 1268, 'n_words': 284}