Revert "cmake: fixed incorrect usage of add_definitions() on Linux"

This reverts commit 286244efedd215600b6be72d4c25e48af0ed1c2d.
Merge pull request #1498 from alalek:revert_1487