aboutsummaryrefslogtreecommitdiff
path: root/cmake/FindVTune.cmake
diff options
context:
space:
mode:
authorRSDuck <RSDuck@users.noreply.github.com>2023-04-13 01:46:10 +0200
committerRSDuck <RSDuck@users.noreply.github.com>2023-04-13 01:49:32 +0200
commita864f845e07a1b8c5ee63150d450fff4028c67da (patch)
treee54b1d44e0355d8d215c01981f8b373f0672541e /cmake/FindVTune.cmake
parent613280d3b4c8c8ff8c9435099ec17843ec2b020c (diff)
fix JIT profiling with VTune
Diffstat (limited to 'cmake/FindVTune.cmake')
-rw-r--r--cmake/FindVTune.cmake9
1 files changed, 7 insertions, 2 deletions
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()