You cannot optimize integral division like this. You end up multiplying by 0, 1 or 2 instead of whole spectre of ratios.
if(WIN32 AND NOT UNIX)
install(DIRECTORY .
DESTINATION ${target_library_install_dir}
FILES_MATCHING PATTERN "*.dll" PATTERN "*.ico"
)
endif(WIN32 AND NOT UNIX)