CLion/CMake build for ARM target linking with wrong version of xml2 lib compared with Makefile build for same project
I've set up CLion so I can build for either the desktop or an ARM embedded target for my project. The cross build does work and runs on the target but there is a warning from the executable on the target that the linked xml2 version is 209 while the target has version 208.
If I build the exact same project using the MAKEFILE that I was previously using I do NOT get that warning from the created ARM executable.
The paths as configured in the toolchain-arm.cmake file that I created are the exact same paths to the tools and rootsys as the Makefile specifies. And the rootsys directory is what has been written to the target ARM device.
What am I missing that is causing the CMake build to link with the wrong version of xml2, and how do I correct it within CLion?
Thanks,
P.S. Other than this hiccup the cross build/debugging works great in CLion now that I've worked though the configuration issues.
请先登录再写评论。
I think I finally found the problem. I had thought that I'd triple checked every single path but there was one that was pointing to the toolchain xml2 include location instead of the rootfs path for xml2. Once I corrected that then it now appears to be linking with the proper version of xml2 library.