summaryrefslogtreecommitdiffstats
path: root/amd/packages/patches/rocprof-register-6.2.0.patch
blob: edcd47fe91b34dee103e9098a30b7f29c799e2d5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
Do not let CMake attempt to build fmt and glog; let CMake find it instead
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 30d1308..7572226 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -113,6 +113,6 @@ if(ROCPROFILER_REGISTER_BUILD_SAMPLES)
     add_subdirectory(samples)
 endif()
 
-include(rocprofiler_register_config_packaging)
+#include(rocprofiler_register_config_packaging)
 
 rocprofiler_register_print_features()
diff --git a/source/lib/rocprofiler-register/CMakeLists.txt b/source/lib/rocprofiler-register/CMakeLists.txt
index 840fbed..2cdca02 100644
--- a/source/lib/rocprofiler-register/CMakeLists.txt
+++ b/source/lib/rocprofiler-register/CMakeLists.txt
@@ -17,6 +17,8 @@ target_include_directories(
     rocprofiler-register PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} ${PROJECT_SOURCE_DIR}/source
                                  ${PROJECT_BINARY_DIR}/source)
 
+find_package(fmt REQUIRED)
+find_package(glog REQUIRED)
 target_link_libraries(
     rocprofiler-register
     PUBLIC rocprofiler-register::headers