Open brendena opened 5 years ago
Hi @brendena
You need to define BUILD_WITH_EASY_PROFILER
somehow.
For example add
target_compile_definitions(TestDir PRIVATE -DBUILD_WITH_EASY_PROFILER=1)
to the shared library's CMakeLists.txt.
Alternatively you can use PUBLIC
visibility for this definition in one of your main projects to avoid adding it into each project.
I had exact same; issue @cas4ey 's comment helped!
I'm not able to see the timings that are called from a shared library. I can see the timings if there used in a standard h file or cpp file that are included in the same cmake executible. But if i move them into a separate shared lib i don't see any of the logs. Its probably a cmake issue but my cmake file is really simple and the code compiles and run.
Tested on Ubuntu 18.04 x64 on Release 2.01 and the latest dev branch.
Code from the shared lib from TestDir folder.