Package Details: easy_profiler 2.0.1-1

Git Clone URL: https://aur.archlinux.org/easy_profiler.git (read-only)
Package Base: easy_profiler
Description: Lightweight cross-platform profiler library for c++
Upstream URL: https://github.com/yse/easy_profiler
Licenses: MIT
Submitter: Klowner
Maintainer: Klowner
Last Packager: Klowner
Votes: 0
Popularity: 0.000000
First Submitted: 2017-10-14 14:45
Last Updated: 2018-10-18 03:06

Dependencies (1)

Required by (0)

Sources (2)

Latest Comments

Klowner commented on 2018-10-18 03:07

Thank you, @akb825! I've updated with your patch, could you verify that it works as you expect?

akb825 commented on 2018-10-17 21:07

The current workaround of moving /usr/bin/libeasy_profiler.so to /usr/lib breaks if you try to use CMake to find the library to use in another project. (since it still looks for it in /usr/bin)

A better approach is to patch the CMakeLists.txt to install it in the correct location.

diff --git a/easy_profiler_core/CMakeLists.txt b/easy_profiler_core/CMakeLists.txt
index 7d5bec4..4cfafde 100644
--- a/easy_profiler_core/CMakeLists.txt
+++ b/easy_profiler_core/CMakeLists.txt
@@ -306,8 +306,9 @@ install(
     easy_profiler
     EXPORT
     ${targets_export_name}
-    DESTINATION
-    bin
+    LIBRARY DESTINATION lib
+    ARCHIVE DESTINATION lib
+    RUNTIME DESTINATION bin
     INCLUDES DESTINATION "${include_install_dir}"
 )