I use RUNTIME_DEPENDENCIES to copy all dlls. But it doesn’t find all. In particular, it doesn’t find postgresql dlls. They are on my PATH though.
Adding postgreql to the
DIRECTORIES options gives me the lib directory, but I need the bin directory
$<TARGET_RUNTIME_DLLS:PostgreSQL::PostgreSQL> doesn’t work either. FindPostgresql.cmake does set
IMPORTED_LOCATION, but also sets the target to
UNKNOWN, so according to the documentation it is not considered.
Questions therefore are:
- Is the PATH not considered by
file(RUNTIME_DEPENDENCIES)? Can I change it
- Why is the PostgreSQL::PostgreSQL target set to Unknown? Or why is it ignored by
TARGET_RUNTIME_DLLSeven though it has
I could also not generate the RUNTIME_DEPENDENCIES as they are on the PATH anyway in this case, but how would I ignore all the dlls without listing each explicitly in
POST_EXCLUDE_REGEXES as Postgresql as many dlls.