I have a CMake project where I'm building wxWidgets on the fly. The
libraries are in a subdirectory of the build directory.
Unfortunately the CMAKE_FIND_ROOT_PATH gets prepended to the library name
even though it's being provided as an absolute directory rather than a
relative one.
From running cmake --debug-find:
find_library considered the following locations:
/usr/x86_64-w64-mingw32/sys-root/mingw/home/build/build/freedv/external/dist/lib/(lib|)wxregexu-3.1-x86_64-w64-mingw32(\.dll|\.dll\.a|\.a|\.lib)
Obviously this is wrong. It should be using the
path, /home/build/build/freedv/external/dist/lib, directly without
prepending anything.
Help!
Thanks,
Richard