Closed JuliusBrueggemann closed 1 year ago
Hm, I'd be concerned about breakage for people who don't use cmake. Can we do something like have an ifdef around the minitrace_export include, and in the else path, set MINITRACE_EXPORT to "", or similar?
Hm, I'd be concerned about breakage for people who don't use cmake. Can we do something like have an ifdef around the minitrace_export include, and in the else path, set MINITRACE_EXPORT to "", or similar?
I just pushed a change that should do exactly that.
Looks like that will take care of it, yeah!
This PR allows users to build minitrace as a shared library via CMake by setting the option
MTR_BUILD_SHARED
toON
. This option defaults to the value ofBUILD_SHARED_LIBS
.Closes #35