[CMake] Use COMPILE_DEFINITIONS target property for setting BUILDING_* defines
https://bugs.webkit.org/show_bug.cgi?id=121672
Reviewed by Gyuyoung Kim.
Since the scope of add_definitions() is always a whole file, we need to use
target properties instead to set definitions only for specific targets.
Source/JavaScriptCore:
* CMakeLists.txt:
Source/WebCore:
* CMakeLists.txt:
Source/WebKit:
* CMakeLists.txt:
Source/WTF:
* wtf/CMakeLists.txt:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@156159
268f45cc-cd09-0410-ab3c-
d52691b4dbfc