Closed olivier-lemaire closed 13 hours ago
If you want to install imported spdlog as part of your project, define SPDLOG_INSTALL=ON
.
https://github.com/gabime/spdlog/blob/271f0f3b14cd3266fd0f52c636fe3527d3c8beb2/CMakeLists.txt#L89
The spdlog install command is not defined because SPDLOG_INSTALL=OFF
is the default (if spdlog not top level).
Hi tt4g thank you very much for your message, it helped a lot. Everything is now working as expected. Have a very good day. Olivier
Hi there, I'm trying to build a small toy project. I want to build spdlog as a shared library, link it relative to my executable using a rpath. Before installation, the executable is correctly linked to spdlog
after install the executable can no longer find spdlog
Below is my CmakeLists
Why is spdlog not correctly linked after installation, while all other libraries are?
Thank you for your time and consideration.
Olivier