Changeset 184357 in webkit


Ignore:
Timestamp:
May 14, 2015 3:29:25 PM (9 years ago)
Author:
Michael Catanzaro
Message:

[CMake] Don't read the LOCATION property of targets
https://bugs.webkit.org/show_bug.cgi?id=145018

Reviewed by Martin Robinson.

Use the TARGET_FILE_DIR generator expression to determine the location of the test injected
bundle, rather than assuming that the LOCATION property of TestWebKitAPIInjectedBundle will
be the same at configure-time as it is at generate-time.

  • TestWebKitAPI/CMakeLists.txt:
Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r184341 r184357  
     12015-05-14  Michael Catanzaro  <mcatanzaro@igalia.com>
     2
     3        [CMake] Don't read the LOCATION property of targets
     4        https://bugs.webkit.org/show_bug.cgi?id=145018
     5
     6        Reviewed by Martin Robinson.
     7
     8        Use the TARGET_FILE_DIR generator expression to determine the location of the test injected
     9        bundle, rather than assuming that the LOCATION property of TestWebKitAPIInjectedBundle will
     10        be the same at configure-time as it is at generate-time.
     11
     12        * TestWebKitAPI/CMakeLists.txt:
     13
    1142015-05-14  Myles C. Maxfield  <mmaxfield@apple.com>
    215
  • trunk/Tools/TestWebKitAPI/CMakeLists.txt

    r183512 r184357  
    130130add_dependencies(TestWebKitAPIInjectedBundle ${ForwardingHeadersForTestWebKitAPI_NAME})
    131131
    132 get_property(TestWebKitAPIInjectedBundle_PATH TARGET TestWebKitAPIInjectedBundle PROPERTY LOCATION)
    133 
    134132add_definitions(-DGTEST_LINKED_AS_SHARED_LIBRARY=1 -DGTEST_HAS_RTTI=0
    135133    -DTEST_WEBKIT2_RESOURCES_DIR=\"${TESTWEBKITAPI_DIR}/Tests/WebKit2\"
    136     -DTEST_INJECTED_BUNDLE_PATH=\"${TestWebKitAPIInjectedBundle_PATH}\"
     134    -DTEST_INJECTED_BUNDLE_PATH=\"$<TARGET_FILE_DIR:TestWebKitAPIInjectedBundle>\"
    137135)
    138136
Note: See TracChangeset for help on using the changeset viewer.