<commit_before>include(ExternalProject)

set(prefix "${CMAKE_BINARY_DIR}/third_party/clFFT")
set(clFFT_location ${prefix}/lib/import/${CMAKE_STATIC_LIBRARY_PREFIX}clFFT${CMAKE_STATIC_LIBRARY_SUFFIX})
if(CMAKE_VERSION VERSION_LESS 3.2 AND CMAKE_GENERATOR MATCHES "Ninja")
  message(WARNING "Building clFFT with Ninja has known issues with CMake older than 3.2")
  set(byproducts)
else()
  set(byproducts BYPRODUCTS ${clFFT_location})
endif()

ExternalProject_Add(
  clFFT-external
  GIT_REPOSITORY https://github.com/arrayfire/clFFT.git
  GIT_TAG 1c14c415d1dd8d9a73fa2546086508a34f2008af
  PREFIX "${prefix}"
  INSTALL_DIR "${prefix}"
  UPDATE_COMMAND ""
  CONFIGURE_COMMAND ${CMAKE_COMMAND} -Wno-dev "-G${CMAKE_GENERATOR}" <SOURCE_DIR>/src
    -DCMAKE_CXX_COMPILER:FILEPATH=${CMAKE_CXX_COMPILER}
    "-DCMAKE_CXX_FLAGS:STRING=${CMAKE_CXX_FLAGS} -w"
    -DCMAKE_C_COMPILER:FILEPATH=${CMAKE_C_COMPILER}
    "-DCMAKE_C_FLAGS:STRING=${CMAKE_C_FLAGS} -w"
    -DCMAKE_BUILD_TYPE:STRING=${CMAKE_BUILD_TYPE}<commit_msg>Update clFFT commit id<commit_after>include(ExternalProject)

set(prefix "${CMAKE_BINARY_DIR}/third_party/clFFT")
set(clFFT_location ${prefix}/lib/import/${CMAKE_STATIC_LIBRARY_PREFIX}clFFT${CMAKE_STATIC_LIBRARY_SUFFIX})
if(CMAKE_VERSION VERSION_LESS 3.2 AND CMAKE_GENERATOR MATCHES "Ninja")
  message(WARNING "Building clFFT with Ninja has known issues with CMake older than 3.2")
  set(byproducts)
else()
  set(byproducts BYPRODUCTS ${clFFT_location})
endif()

ExternalProject_Add(
  clFFT-external
  GIT_REPOSITORY https://github.com/arrayfire/clFFT.git
  GIT_TAG 1597f0f35a644789c7ad77efe79014236cca2fab
  PREFIX "${prefix}"
  INSTALL_DIR "${prefix}"
  UPDATE_COMMAND ""
  CONFIGURE_COMMAND ${CMAKE_COMMAND} -Wno-dev "-G${CMAKE_GENERATOR}" <SOURCE_DIR>/src
    -DCMAKE_CXX_COMPILER:FILEPATH=${CMAKE_CXX_COMPILER}
    "-DCMAKE_CXX_FLAGS:STRING=${CMAKE_CXX_FLAGS} -w"
    -DCMAKE_C_COMPILER:FILEPATH=${CMAKE_C_COMPILER}
    "-DCMAKE_C_FLAGS:STRING=${CMAKE_C_FLAGS} -w"
    -DCMAKE_BUILD_TYPE:STRING=${CMAKE_BUILD_TYPE}
{'fraction_non_alphanumeric': 0.11816838995568685, 'fraction_numerical': 0.029542097488921712, 'mean_word_length': 7.260162601626016, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, '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': '4307163', 'n_tokens_mistral': 882, 'n_tokens_neox': 789, 'n_words': 110}