<commit_before>#-----------------------------------------------------------------------------
set(LOCAL_PROJECT_NAME FiberViewerLight)
#-----------------------------------------------------------------------------
set(verbose FALSE)
#-----------------------------------------------------------------------------

set( ${LOCAL_PROJECT_NAME}_USE_QT ON )

option(USE_GIT_PROTOCOL "If behind a firewall turn this off to use http instead." ON)
set(git_protocol "git")
if(NOT USE_GIT_PROTOCOL)
  set(git_protocol "http")
else(NOT USE_GIT_PROTOCOL)
  set(git_protocol "git")
endif()

#-----------------------------------------------------------------------------
# Enable and setup External project global properties
#-----------------------------------------------------------------------------
include(ExternalProject)
include(SlicerMacroEmptyExternalProject)
include(SlicerMacroCheckExternalProjectDependency)

include(ExternalProject)
if(CMAKE_EXTRA_GENERATOR)
  set(gen "${CMAKE_EXTRA_GENERATOR} - ${CMAKE_GENERATOR}")
else()
  set(gen "${CMAKE_GENERATOR}")
endif()

#-----------------------------------------------------------------------------
# Platform check
#-----------------------------------------------------------------------------

set(PLATFORM_CHECK true)

if(PLATFORM_CHECK)
  # See CMake/Modules/Platform/Darwin.cmake)
  #   6.x == Mac OSX 10.2 (Jaguar)
  #   7.x == Mac OSX 10.3 (Panther)
  #   8.x == Mac OSX 10.4 (Tiger)
  #   9.x == Mac OSX 10.5 (Leopard)
  #  10.x == Mac OSX 10.6 (Snow Leopard)
  if (DARWIN_MAJOR_VERSION LESS "9")
    message(FATAL_ERROR "Only Mac OSX >= 10.5 are supported !")
  endif()
endif()


#-----------------------------------------------------------------------------
#set( VTK_DIR_TMP ${VTK_DIR} )
message(WARNING "Before: "${QT_QMAKE_EXECUTABLE} )
unsetForSlicer( VERBOSE NAMES VTK_DIR CMAKE_MODULE_PATH CMAKE_C_COMPILER CMAKE_CXX_COMPILER )
find_package(Slicer REQUIRED)
include(${Slicer_USE_FILE})
unsetAllForSlicerBut( VERBOSE NAMES ITK_DIR SlicerExecutionModel_DIR QT_QMAKE_EXECUTABLE )
resetForSlicer( VERBOSE NAMES VTK_DIR CMAKE_MODULE_PATH CMAKE_C_COMPILER CMAKE_CXX_COMPILER )
#set( VTK_DIR ${VTK_DIR_TMP} CACHE PATH "VTK PATH" FORCE )
set( BUILD_SHARED_LIBS OFF)
message(WARNING "After: "${QT_QMAKE_EXECUTABLE} )

#-----------------------------------------------------------------------------
# Project dependencies
#-----------------------------------------------------------------------------


#-----------------------------------------------------------------------------<commit_msg>BUG: CXX and C flags were not given to external_projects<commit_after>#-----------------------------------------------------------------------------
set(LOCAL_PROJECT_NAME FiberViewerLight)
#-----------------------------------------------------------------------------
set(verbose FALSE)
#-----------------------------------------------------------------------------

set( ${LOCAL_PROJECT_NAME}_USE_QT ON )

option(USE_GIT_PROTOCOL "If behind a firewall turn this off to use http instead." ON)
set(git_protocol "git")
if(NOT USE_GIT_PROTOCOL)
  set(git_protocol "http")
else(NOT USE_GIT_PROTOCOL)
  set(git_protocol "git")
endif()

#-----------------------------------------------------------------------------
# Enable and setup External project global properties
#-----------------------------------------------------------------------------
include(ExternalProject)
include(SlicerMacroEmptyExternalProject)
include(SlicerMacroCheckExternalProjectDependency)

include(ExternalProject)
if(CMAKE_EXTRA_GENERATOR)
  set(gen "${CMAKE_EXTRA_GENERATOR} - ${CMAKE_GENERATOR}")
else()
  set(gen "${CMAKE_GENERATOR}")
endif()

#-----------------------------------------------------------------------------
# Platform check
#-----------------------------------------------------------------------------

set(PLATFORM_CHECK true)

if(PLATFORM_CHECK)
  # See CMake/Modules/Platform/Darwin.cmake)
  #   6.x == Mac OSX 10.2 (Jaguar)
  #   7.x == Mac OSX 10.3 (Panther)
  #   8.x == Mac OSX 10.4 (Tiger)
  #   9.x == Mac OSX 10.5 (Leopard)
  #  10.x == Mac OSX 10.6 (Snow Leopard)
  if (DARWIN_MAJOR_VERSION LESS "9")
    message(FATAL_ERROR "Only Mac OSX >= 10.5 are supported !")
  endif()
endif()


#-----------------------------------------------------------------------------
unsetForSlicer( NAMES VTK_DIR CMAKE_MODULE_PATH CMAKE_C_COMPILER CMAKE_CXX_COMPILER CMAKE_CXX_FLAGS CMAKE_C_FLAGS )
find_package(Slicer REQUIRED)
include(${Slicer_USE_FILE})
unsetAllForSlicerBut( NAMES ITK_DIR SlicerExecutionModel_DIR QT_QMAKE_EXECUTABLE )
resetForSlicer( NAMES VTK_DIR CMAKE_MODULE_PATH CMAKE_C_COMPILER CMAKE_CXX_COMPILER CMAKE_CXX_FLAGS CMAKE_C_FLAGS )
set( BUILD_SHARED_LIBS OFF)
#-----------------------------------------------------------------------------
# Project dependencies
#-----------------------------------------------------------------------------


#-----------------------------------------------------------------------------
{'fraction_non_alphanumeric': 0.4100140760104565, 'fraction_numerical': 0.010054293183189221, 'mean_word_length': 1.2953391785879096, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '3048609', 'n_tokens_mistral': 1404, 'n_tokens_neox': 1325, 'n_words': 277}