CMake Warning (dev) at Tools/TestWebKitAPI/CMakeLists.txt:199 (add_library): Policy CMP0038 is not set: Targets may not link directly to themselves. Run "cmake --help-policy CMP0038" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Target "TestWebKitAPIBase" links to itself. This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at Tools/TestWebKitAPI/CMakeLists.txt:199 (add_library): Policy CMP0038 is not set: Targets may not link directly to themselves. Run "cmake --help-policy CMP0038" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Target "TestWebKitAPIBase" links to itself. This warning is for project developers. Use -Wno-dev to suppress it.
I think I hate linkers. This fixes the warnings and it links, but there's got to be a be a better way. I ran into linker errors when I tried anything else, though. In particular, it won't link if I remove TestWebKitAPIBase from test_webkit2_api_LIBRARIES and specify it manually in target_link_libraries for the tests.
Created attachment 297403 [details] Patch
LGTM I don't think linker can take any blame here, it might be cmake but most probably our project structure
Comment on attachment 297403 [details] Patch Clearing flags on attachment: 297403 Committed r209991: <http://trac.webkit.org/changeset/209991>
All reviewed patches have been landed. Closing bug.