* fix problem with REMOVE_DUPLICATES on undefined lists
* since 3.1 file(GLOB FILEPATHS RELATIVE .. returns single / instead of // as
previously - necessary adoptions for regex and matches done. Should
work with all cmake versions.
Tested with 3.1.0-rc3
(cherry picked from commit 1b663ceffe)
Conflicts:
client/CMakeLists.txt
server/CMakeLists.txt