ARRGGH!
The problem came from the CMakeLists.txt for one of the static libs which contained:
target_link_libraries(${PROJECT_NAME} PUBLIC libraw libtiff ZClass )
David