freeopcua icon indicating copy to clipboard operation
freeopcua copied to clipboard

Use CMake targets for linking against Boost

Open DavidZemon opened this issue 7 years ago • 1 comments

I was running into a problem with absolute paths in the CMake scripts generated by freeopcua when a package is built. The scripts executed by find_package(freeocpua) contained absolute paths to the Boost libraries, which then failed if the package was sent to a different machine where boost was installed somewhere else. By switching the target_link_libraries invocations to use CMake targets instead of macros, this problem disappears.

DavidZemon avatar Jan 19 '18 21:01 DavidZemon

Hello maintainers. Is there any way you could merge this in? I'd really like to switch back to using your upstream source rather than my forked version, but cannot until this is merged.

DavidZemon avatar Jan 31 '18 15:01 DavidZemon