From 5f3c1816f914624497a7156cf93d31bde06e777e Mon Sep 17 00:00:00 2001 From: Ziemas Date: Sat, 21 Aug 2021 23:36:01 +0200 Subject: [PATCH] Cmake: Link vtune in utilities --- common/src/Utilities/CMakeLists.txt | 4 ++++ pcsx2/CMakeLists.txt | 4 ---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/common/src/Utilities/CMakeLists.txt b/common/src/Utilities/CMakeLists.txt index d58bf986c1..f0dd12ccd4 100644 --- a/common/src/Utilities/CMakeLists.txt +++ b/common/src/Utilities/CMakeLists.txt @@ -97,6 +97,10 @@ else() ) endif() +if(USE_VTUNE) + target_link_libraries(Utilities PUBLIC Vtune::Vtune) +endif() + target_link_libraries(Utilities PRIVATE ${LIBC_LIBRARIES} PUBLIC wxWidgets::all) target_compile_features(Utilities PUBLIC cxx_std_17) target_include_directories(Utilities PUBLIC ../../../3rdparty/include ../../include PRIVATE ../../include/Utilities .) diff --git a/pcsx2/CMakeLists.txt b/pcsx2/CMakeLists.txt index 3e07cdc28f..acec2917f0 100644 --- a/pcsx2/CMakeLists.txt +++ b/pcsx2/CMakeLists.txt @@ -1280,10 +1280,6 @@ foreach(res_file IN ITEMS add_custom_command(OUTPUT "${res_rec_vp_src}/${res_file}.h" COMMAND ${BIN2CPP} "${res_rec_vp_src}/${res_file}.png" "${res_rec_vp_src}/${res_file}" ) endforeach() -if(USE_VTUNE) - target_link_libraries(PCSX2 PRIVATE Vtune::Vtune) -endif() - # additonal include directories target_include_directories(PCSX2 PRIVATE .