<commit_before>cmake_minimum_required(VERSION 3.5)

project(solver)

set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake)

# HACK: force cache refresh by unsetting the variable
unset (MKL_LIBRARIES CACHE)
find_package(MKL REQUIRED)

add_executable(solver solver.cpp)
include_directories(${MKL_INCLUDES})
target_link_libraries(solver ${MKL_LIBRARIES})

set(FOO_INCLUDES "foo")
include_directories(${FOO_INCLUDES})

set(BAR_INCLUDES "bar")
target_include_directories(solver PUBLIC ${BAR_INCLUDES})<commit_msg>Use rpath only on unix<commit_after>cmake_minimum_required(VERSION 3.5)

project(solver)

set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake)

# HACK: force cache refresh by unsetting the variable
unset (MKL_LIBRARIES CACHE)
find_package(MKL REQUIRED)

add_executable(solver solver.cpp)
include_directories(${MKL_INCLUDES})
target_link_libraries(solver ${MKL_LIBRARIES})

set(FOO_INCLUDES "foo")
include_directories(${FOO_INCLUDES})

set(BAR_INCLUDES "bar")
target_include_directories(solver PUBLIC ${BAR_INCLUDES})

IF(UNIX)
  set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
  set(CMAKE_EXE_LINKER_FLAGS "-Wl,-rpath='$ORIGIN'")
ENDIF()

install(FILES ${MKL_LIBRARIES} DESTINATION bin)
install(TARGETS solver DESTINATION bin)
{'fraction_non_alphanumeric': 0.10285714285714286, 'fraction_numerical': 0.0032653061224489797, 'mean_word_length': 10.457943925233645, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '4080018', 'n_tokens_mistral': 519, 'n_tokens_neox': 470, 'n_words': 79}