build: cmake 3.1 compatibility
authorBernhard Miklautz <bernhard.miklautz@shacknet.at>
Fri, 12 Dec 2014 17:26:45 +0000 (18:26 +0100)
committerBernhard Miklautz <bernhard.miklautz@shacknet.at>
Fri, 12 Dec 2014 18:26:22 +0000 (19:26 +0100)
commit1b663ceffe51008af7ae9749e5b7999b2f7d6698
tree36cb2cd4581a9ffb382123073857d2a98c2653d1
parent10ee2f72d9b3acc58b7dff784d1f79cb52dcc4fa
build: cmake 3.1 compatibility

* 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
channels/CMakeLists.txt
channels/client/CMakeLists.txt
client/CMakeLists.txt
server/CMakeLists.txt
third-party/CMakeLists.txt