From a864f845e07a1b8c5ee63150d450fff4028c67da Mon Sep 17 00:00:00 2001 From: RSDuck Date: Thu, 13 Apr 2023 01:46:10 +0200 Subject: fix JIT profiling with VTune --- cmake/FindVTune.cmake | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'cmake') diff --git a/cmake/FindVTune.cmake b/cmake/FindVTune.cmake index 3c16dba..7e0e875 100644 --- a/cmake/FindVTune.cmake +++ b/cmake/FindVTune.cmake @@ -1,5 +1,10 @@ find_path(VTUNE_PATH "") -include_directories("${VTUNE_PATH}/include") -link_directories("${VTUNE_PATH}/lib64") +set(VTUNE_INCLUDE_DIR "${VTUNE_PATH}/include") + +if (WIN32) + set(VTUNE_LIBRARY "${VTUNE_PATH}/lib64/jitprofiling.lib") +else() + set(VTUNE_LIBRARY "${VTUNE_PATH}/lib64/jitprofiling.a") +endif() -- cgit v1.2.3