aboutsummaryrefslogtreecommitdiff
path: root/src
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 /src
parent613280d3b4c8c8ff8c9435099ec17843ec2b020c (diff)
fix JIT profiling with VTune
Diffstat (limited to 'src')
-rw-r--r--src/CMakeLists.txt5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 0a49406..7f915ad 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -122,7 +122,7 @@ if (ENABLE_JIT)
target_compile_definitions(core PUBLIC JIT_ENABLED)
if (ENABLE_JIT_PROFILING)
- include(cmake/FindVTune.cmake)
+ include(../cmake/FindVTune.cmake)
add_definitions(-DJIT_PROFILING_ENABLED)
endif()
endif()
@@ -134,5 +134,6 @@ elseif(NOT APPLE)
endif()
if (ENABLE_JIT_PROFILING)
- target_link_libraries(core PRIVATE jitprofiling)
+ target_include_directories(core PRIVATE "${VTUNE_INCLUDE_DIR}")
+ target_link_libraries(core PRIVATE "${VTUNE_LIBRARY}")
endif()