<commit_before>#=========================================================================
#
#  Copyright Leiden University Medical Center, Erasmus University Medical 
#  Center and contributors
#
#  Licensed under the Apache License, Version 2.0 (the "License");
#  you may not use this file except in compliance with the License.
#  You may obtain a copy of the License at
#
#        http://www.apache.org/licenses/LICENSE-2.0.txt
#
#  Unless required by applicable law or agreed to in writing, software
#  distributed under the License is distributed on an "AS IS" BASIS,
#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
#  See the License for the specific language governing permissions and
#  limitations under the License.
#
#=========================================================================

cmake_minimum_required( VERSION 3.5.1 )

# ---------------------------------------------------------------------
project( SuperElastixSuperBuild )

if(CMAKE_CONFIGURATION_TYPES)

  list(LENGTH CMAKE_CONFIGURATION_TYPES SELX_NUMBER_OF_CONFIGURATION_TYPES)
  if ( NOT ${SELX_NUMBER_OF_CONFIGURATION_TYPES} EQUAL 1 )
    message(STATUS "CMAKE_CONFIGURATION_TYPES had ${SELX_NUMBER_OF_CONFIGURATION_TYPES} configuration types (${CMAKE_CONFIGURATION_TYPES}), but SuperElastix SuperBuild only supports exactly one configuration type at a time! It is now reset to Release.\n"
    "  Please modify CMAKE_CONFIGURATION_TYPES if you want to configure a different configuration type (Debug, MinSizeRel, or RelWithDebInfo).")
    set(CMAKE_CONFIGURATION_TYPES Release)
  endif()
  
  # Modify project name to ease distinguishing between Visual Studio solution files of different configuration types:
  project(SuperElastixSuperBuild-${CMAKE_CONFIGURATION_TYPES})

  set(CMAKE_CONFIGURATION_TYPES "${CMAKE_CONFIGURATION_TYPES}" CACHE STRING
  "SuperElastix SuperBuild allows CMake to generate only one configuration at a time (Debug, Release, MinSizeRel, or RelWithDebInfo)"
  FORCE)
  
  set_property(CACHE CMAKE_CONFIGURATION_TYPES PROPERTY STRINGS Debug Release MinSizeRel RelWithDebInfo)
  
  message(STATUS "Selected configuration type (CMAKE_CONFIGURATION_TYPES): " ${CMAKE_CONFIGURATION_TYPES})
endif()

set( SUPERELASTIXSUPERBUILD_MAJOR_VERSION 0)
set( SUPERELASTIXSUPERBUILD_MINOR_VERSION 1)
set( SUPERELASTIXSUPERBUILD_PATCH_VERSION 0)
set( SUPERELASTIXSUPERBUILD_VERSION ${SUPERELASTIXSUPERBUILD_MAJOR_VERSION}.${SUPERELASTIXSUPERBUILD_MINOR_VERSION}.${SUPERELASTIXSUPERBUILD_PATCH_VERSION})

include (CTest)

add_test(NAME EmptySuperBuildTest COMMAND "echo")

find_package( Git REQUIRED )

include( ExternalProject )

set( CMAKE_MODULE_PATH<commit_msg>ENH: remove empty test 8cfc9f8c574963474d40d775c9fa9019eee3f4fa<commit_after>#=========================================================================
#
#  Copyright Leiden University Medical Center, Erasmus University Medical 
#  Center and contributors
#
#  Licensed under the Apache License, Version 2.0 (the "License");
#  you may not use this file except in compliance with the License.
#  You may obtain a copy of the License at
#
#        http://www.apache.org/licenses/LICENSE-2.0.txt
#
#  Unless required by applicable law or agreed to in writing, software
#  distributed under the License is distributed on an "AS IS" BASIS,
#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
#  See the License for the specific language governing permissions and
#  limitations under the License.
#
#=========================================================================

cmake_minimum_required( VERSION 3.5.1 )

# ---------------------------------------------------------------------
project( SuperElastixSuperBuild )

if(CMAKE_CONFIGURATION_TYPES)

  list(LENGTH CMAKE_CONFIGURATION_TYPES SELX_NUMBER_OF_CONFIGURATION_TYPES)
  if ( NOT ${SELX_NUMBER_OF_CONFIGURATION_TYPES} EQUAL 1 )
    message(STATUS "CMAKE_CONFIGURATION_TYPES had ${SELX_NUMBER_OF_CONFIGURATION_TYPES} configuration types (${CMAKE_CONFIGURATION_TYPES}), but SuperElastix SuperBuild only supports exactly one configuration type at a time! It is now reset to Release.\n"
    "  Please modify CMAKE_CONFIGURATION_TYPES if you want to configure a different configuration type (Debug, MinSizeRel, or RelWithDebInfo).")
    set(CMAKE_CONFIGURATION_TYPES Release)
  endif()
  
  # Modify project name to ease distinguishing between Visual Studio solution files of different configuration types:
  project(SuperElastixSuperBuild-${CMAKE_CONFIGURATION_TYPES})

  set(CMAKE_CONFIGURATION_TYPES "${CMAKE_CONFIGURATION_TYPES}" CACHE STRING
  "SuperElastix SuperBuild allows CMake to generate only one configuration at a time (Debug, Release, MinSizeRel, or RelWithDebInfo)"
  FORCE)
  
  set_property(CACHE CMAKE_CONFIGURATION_TYPES PROPERTY STRINGS Debug Release MinSizeRel RelWithDebInfo)
  
  message(STATUS "Selected configuration type (CMAKE_CONFIGURATION_TYPES): " ${CMAKE_CONFIGURATION_TYPES})
endif()

set( SUPERELASTIXSUPERBUILD_MAJOR_VERSION 0)
set( SUPERELASTIXSUPERBUILD_MINOR_VERSION 1)
set( SUPERELASTIXSUPERBUILD_PATCH_VERSION 0)
set( SUPERELASTIXSUPERBUILD_VERSION ${SUPERELASTIXSUPERBUILD_MAJOR_VERSION}.${SUPERELASTIXSUPERBUILD_MINOR_VERSION}.${SUPERELASTIXSUPERBUILD_PATCH_VERSION})

include (CTest)

find_package( Git REQUIRED )

include( ExternalProject )

set( CMAKE_MODULE_PATH
{'fraction_non_alphanumeric': 0.13769331097447363, 'fraction_numerical': 0.008570896217626234, 'mean_word_length': 5.483091787439614, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '1041701', 'n_tokens_mistral': 1623, 'n_tokens_neox': 1562, 'n_words': 451}