<commit_before>option(SUPPRESS_meshkit_BUILD_OUTPUT
"Suppress meshkit build output"
ON)
mark_as_advanced(SUPPRESS_meshkit_BUILD_OUTPUT)

if(SUPPRESS_meshkit_BUILD_OUTPUT)
set(suppress_build_out SUPPRESS_BUILD_OUTPUT)
endif()

if(BUILD_WITH_CUBIT)

message("Cubit meshkit")
find_package(Autotools REQUIRED)
add_external_project(meshkit
    BUILD_COMMAND "make -j5 install"
    INSTALL_COMMAND ""
    ${suppress_build_out}
    CMAKE_ARGS
      -DAUTOHEADER_EXECUTABLE:path=${AUTOHEADER_EXECUTABLE}
      -DAUTOM4TE_EXECUTABLE:path=${AUTOM4TE_EXECUTABLE}
      -DAUTORECONF_EXECUTABLE:path=${AUTORECONF_EXECUTABLE}
      -DAUTOUPDATE_EXECUTABLE:path=${AUTOUPDATE_EXECUTABLE}
      -DBUILD_WITH_CUBIT:BOOL=ON
      -DCMAKE_INSTALL_PREFIX:path=<INSTALL_DIR>/meshkitCubit
      -DCMAKE_PREFIX_PATH:path=<INSTALL_DIR>/meshkitCubit
      -DAUTOHEADER_EXECUTABLE:path=${AUTOHEADER_EXECUTABLE}
      -DAUTOM4TE_EXECUTABLE:path=${AUTOM4TE_EXECUTABLE}
      -DAUTORECONF_EXECUTABLE:path=${AUTORECONF_EXECUTABLE}
      -DAUTOUPDATE_EXECUTABLE:path=${AUTOUPDATE_EXECUTABLE}
      -DCUBIT_PATH:PATH=${CUBIT_PATH})

else()

add_external_project(meshkit
  DEPENDS moab cgm lasso
  BUILD_IN_SOURCE 1
  PATCH_COMMAND ${GIT_EXECUTABLE} apply ${SuperBuild_PROJECTS_DIR}/patches/meshkit.fix_moab_linking_linux.txt
  BUILD_COMMAND "make -j5 install"
  ${suppress_build_out}
  CONFIGURE_COMMAND  <SOURCE_DIR>/configure
  --prefix=<INSTALL_DIR>
  --with-itaps=<INSTALL_DIR>
  --enable-algs
  --enable-optimize
  --enable-src
  --enable-utils
  --enable-rgg
  --enable-shared
  INSTALL_COMMAND ""
)

if(ENABLE_meshkit)
  find_package(Autotools REQUIRED)
  add_external_project_step(meshkit-autoconf
    COMMAND     ${AUTORECONF_EXECUTABLE} -i <SOURCE_DIR>
    DEPENDEES update
    DEPENDERS configure
  )

  option ( BUILD_WITH_CUBIT       "Build CGM with CUBIT"                 OFF )
  if(BUILD_WITH_CUBIT)
    set(CUBIT_PATH CACHE PATH "Location of the CUBIT Libraries")
    if(NOT IS_DIRECTORY ${CUBIT_PATH})
        message(SEND_ERROR "CUBIT_PATH needs to be set to a valid path")
    endif()
  endif()
endif()

endif()

if(ENABLE_meshkit )
  option ( BUILD_WITH_CUBIT       "Build CGM with CUBIT"                 OFF )
endif()<commit_msg>update meshkit cmake file for linux<commit_after>option(SUPPRESS_meshkit_BUILD_OUTPUT
"Suppress meshkit build output"
ON)
mark_as_advanced(SUPPRESS_meshkit_BUILD_OUTPUT)

if(SUPPRESS_meshkit_BUILD_OUTPUT)
set(suppress_build_out SUPPRESS_BUILD_OUTPUT)
endif()

if(BUILD_WITH_CUBIT)

find_package(Autotools REQUIRED)
add_external_project(meshkit
    BUILD_COMMAND "make -j5 install"
    INSTALL_COMMAND ""
    ${suppress_build_out}
    CMAKE_ARGS
      -DAUTOHEADER_EXECUTABLE:path=${AUTOHEADER_EXECUTABLE}
      -DAUTOM4TE_EXECUTABLE:path=${AUTOM4TE_EXECUTABLE}
      -DAUTORECONF_EXECUTABLE:path=${AUTORECONF_EXECUTABLE}
      -DAUTOUPDATE_EXECUTABLE:path=${AUTOUPDATE_EXECUTABLE}
      -DBUILD_WITH_CUBIT:BOOL=ON
      -DCMAKE_INSTALL_PREFIX:path=<INSTALL_DIR>/meshkitCubit
      -DCMAKE_PREFIX_PATH:path=<INSTALL_DIR>/meshkitCubit
      -DAUTOHEADER_EXECUTABLE:path=${AUTOHEADER_EXECUTABLE}
      -DAUTOM4TE_EXECUTABLE:path=${AUTOM4TE_EXECUTABLE}
      -DAUTORECONF_EXECUTABLE:path=${AUTORECONF_EXECUTABLE}
      -DAUTOUPDATE_EXECUTABLE:path=${AUTOUPDATE_EXECUTABLE}
      -DCUBIT_PATH:PATH=${CUBIT_PATH})

  if(BUILD_WITH_CUBIT)
    message("BUILD WITH CUBIT")
    set(CUBIT_PATH CACHE PATH "Location of the CUBIT Libraries")
    if(NOT IS_DIRECTORY ${CUBIT_PATH})
        message(SEND_ERROR "CUBIT_PATH needs to be set to a valid path")
    endif()
  endif()

else()

add_external_project(meshkit
  DEPENDS moab cgm lasso
  BUILD_IN_SOURCE 1
  PATCH_COMMAND ${GIT_EXECUTABLE} apply ${SuperBuild_PROJECTS_DIR}/patches/meshkit.fix_moab_linking_linux.txt
  BUILD_COMMAND "make -j5 install"
  ${suppress_build_out}
  CONFIGURE_COMMAND  <SOURCE_DIR>/configure
  --prefix=<INSTALL_DIR>
  --with-itaps=<INSTALL_DIR>
  --enable-algs
  --enable-optimize
  --enable-src
  --enable-utils
  --enable-rgg
  --enable-shared
  INSTALL_COMMAND ""
)

if(ENABLE_meshkit)
  find_package(Autotools REQUIRED)
  add_external_project_step(meshkit-autoconf
    COMMAND     ${AUTORECONF_EXECUTABLE} -i <SOURCE_DIR>
    DEPENDEES update
    DEPENDERS configure
  )
endif()

endif()

if(ENABLE_meshkit)
  option ( BUILD_WITH_CUBIT       "Build CGM with CUBIT"                 OFF )
endif()
{'fraction_non_alphanumeric': 0.0921743098334474, 'fraction_numerical': 0.0031941592516541184, 'mean_word_length': 4.730718954248366, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, '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': '3504856', 'n_tokens_mistral': 1671, 'n_tokens_neox': 1636, 'n_words': 234}