IMPORT_PREFIX/IMPORT_SUFFIX has no effect on Windows
Using this configuration:
add_library(postgresql SHARED IMPORTED)
set_target_properties(postgresql PROPERTIES
IMPORT_PREFIX lib
IMPORT_SUFFIX lib
IMPORTED_IMPLIB "${PROJECT_SOURCE_DIR}/lib/postgresql/pq"
)
cmake will complain that it can't find "pq.obj", while it should look for "libpq.lib"