<commit_before>## ======================================================================== ##
## Copyright 2009-2015 Intel Corporation                                    ##
##                                                                          ##
## 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                           ##
##                                                                          ##
## 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.                                           ##
## ======================================================================== ##

SET(LIBRARY_OUTPUT_PATH ${OSPRAY_BINARY_DIR})

CONFIGURE_OSPRAY()

MESSAGE("OSPRAY_EMBREE_SOURCE_DIR ${OSPRAY_EMBREE_SOURCE_DIR}")

IF (OSPRAY_ALLOW_EXTERNAL_EMBREE)
  OSPRAY_ADD_LIBRARY(ospray_embree${OSPRAY_LIB_SUFFIX} SHARED 
    ${OSPRAY_EMBREE_SOURCE_DIR}/kernels/common/rtcore_ispc.ispc
    )
  LINK_DIRECTORIES(${OSPRAY_EMBREE_SOURCE_DIR}/bin)
  TARGET_LINK_LIBRARIES(ospray_embree${OSPRAY_LIB_SUFFIX} pthread dl sys ${OSPRAY_EMBREE_SOURCE_DIR}/bin/libembree.dylib)

  #  TARGET_LINK_LIBRARIES(ospray_embree${OSPRAY_LIB_SUFFIX} pthread dl)
  ADD_SUBDIRECTORY(${OSPRAY_EMBREE_SOURCE_DIR}/common embree_common_sys
    )
ELSE()

  # =======================================================
  # source for everything embree keeps in its 'sys' library
  # =======================================================
  IF (THIS_IS_MIC)
    SET(EMBREE_COMMON_SYS_SOURCES
      platform.cpp
      sysinfo.cpp
      filename.cpp
      library.cpp
      thread.cpp
      network.cpp
      tasklogger.cpp
      taskscheduler.cpp

      taskscheduler_sys.cpp
      taskscheduler_mic.cpp
      sync/mutex.cpp
      sync/condition.cpp
      sync/barrier.cpp
      stl/string.cpp
      )
    SET(EMBREE_COMMON_SYS_SOURCES
      platform.cpp
      sysinfo.cpp
      filename.cpp
      library.cpp
      thread.cpp
      network.cpp
      tasklogger.cpp

      taskscheduler.cpp
      taskscheduler_sys.cpp
      sync/mutex.cpp
      sync/condition.cpp
      sync/barrier.cpp
      stl/string.cpp
      )
  ENDIF()

  # =======================================================
  # source for everything embree keeps in its 'simd' library
  # =======================================================
  IF(THIS_IS_MIC)
    SET(EMBREE_COMMON_SIMD_SOURCES 
      mic_i.cpp mic_f.cpp mic_m.cpp
      )
  ELSE()<commit_msg>compile fix for non-external embree<commit_after>## ======================================================================== ##
## Copyright 2009-2015 Intel Corporation                                    ##
##                                                                          ##
## 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                           ##
##                                                                          ##
## 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.                                           ##
## ======================================================================== ##

SET(LIBRARY_OUTPUT_PATH ${OSPRAY_BINARY_DIR})

CONFIGURE_OSPRAY()

MESSAGE("OSPRAY_EMBREE_SOURCE_DIR ${OSPRAY_EMBREE_SOURCE_DIR}")

IF (OSPRAY_ALLOW_EXTERNAL_EMBREE)
  OSPRAY_ADD_LIBRARY(ospray_embree${OSPRAY_LIB_SUFFIX} SHARED 
    ${OSPRAY_EMBREE_SOURCE_DIR}/kernels/common/rtcore_ispc.ispc
    )
  LINK_DIRECTORIES(${OSPRAY_EMBREE_SOURCE_DIR}/bin)
  TARGET_LINK_LIBRARIES(ospray_embree${OSPRAY_LIB_SUFFIX} pthread dl sys ${OSPRAY_EMBREE_SOURCE_DIR}/bin/libembree.dylib)

  #  TARGET_LINK_LIBRARIES(ospray_embree${OSPRAY_LIB_SUFFIX} pthread dl)
  ADD_SUBDIRECTORY(${OSPRAY_EMBREE_SOURCE_DIR}/common embree_common_sys
    )
ELSE()

  # =======================================================
  # source for everything embree keeps in its 'sys' library
  # =======================================================
  IF (THIS_IS_MIC)
    SET(EMBREE_COMMON_SYS_SOURCES
      platform.cpp
      sysinfo.cpp
      filename.cpp
      library.cpp
      thread.cpp
      network.cpp
      tasklogger.cpp
      taskscheduler.cpp

      taskscheduler_sys.cpp
      taskscheduler_mic.cpp
      sync/mutex.cpp
      sync/condition.cpp
      sync/barrier.cpp
      stl/string.cpp
      )
ELSE()
    SET(EMBREE_COMMON_SYS_SOURCES
      platform.cpp
      sysinfo.cpp
      filename.cpp
      library.cpp
      thread.cpp
      network.cpp
      tasklogger.cpp

      taskscheduler.cpp
      taskscheduler_sys.cpp
      sync/mutex.cpp
      sync/condition.cpp
      sync/barrier.cpp
      stl/string.cpp
      )
  ENDIF()

  # =======================================================
  # source for everything embree keeps in its 'simd' library
  # =======================================================
  IF(THIS_IS_MIC)
    SET(EMBREE_COMMON_SIMD_SOURCES 
      mic_i.cpp mic_f.cpp mic_m.cpp
      )
  ELSE()
{'fraction_non_alphanumeric': 0.1905156690432764, 'fraction_numerical': 0.003979439562261648, 'mean_word_length': 2.294374658656472, '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': 26, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5751742', 'n_tokens_mistral': 1704, 'n_tokens_neox': 1607, 'n_words': 326}