Changeset 182740 in webkit


Ignore:
Timestamp:
Apr 13, 2015, 10:42:22 AM (10 years ago)
Author:
Michael Catanzaro
Message:

[cmake] REGRESSION(182663): It broke feature dependency handling
https://bugs.webkit.org/show_bug.cgi?id=143665

Reviewed by Csaba Osztrogonác.

Don't try to check the value of options before defining the options.

  • Source/cmake/WebKitFeatures.cmake:
Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ChangeLog

    r182731 r182740  
     12015-04-13  Michael Catanzaro  <mcatanzaro@igalia.com>
     2
     3        [cmake] REGRESSION(182663): It broke feature dependency handling
     4        https://bugs.webkit.org/show_bug.cgi?id=143665
     5
     6        Reviewed by Csaba Osztrogonác.
     7
     8        Don't try to check the value of options before defining the options.
     9
     10        * Source/cmake/WebKitFeatures.cmake:
     11
    1122015-04-13  Csaba Osztrogonác  <ossy@webkit.org>
    213
  • trunk/Source/cmake/WebKitFeatures.cmake

    r182731 r182740  
    178178        endif ()
    179179
     180        option(${_name} "${_WEBKIT_AVAILABLE_OPTIONS_DESCRIPTION_${_name}}" ${_WEBKIT_AVAILABLE_OPTIONS_INITIAL_VALUE_${_name}})
     181        if (NOT _WEBKIT_AVAILABLE_OPTIONS_IS_PUBLIC_${_name})
     182            mark_as_advanced(FORCE ${_name})
     183        endif ()
     184
    180185        if (${_name} AND DEFINED _WEBKIT_AVAILABLE_OPTIONS_DEPENDENCY_OF_${_name})
    181186            if (NOT ${${_WEBKIT_AVAILABLE_OPTIONS_DEPENDENCY_OF_${_name}}})
     
    183188                set(${_name} OFF)
    184189            endif ()
    185         endif ()
    186 
    187         option(${_name} "${_WEBKIT_AVAILABLE_OPTIONS_DESCRIPTION_${_name}}" ${_WEBKIT_AVAILABLE_OPTIONS_INITIAL_VALUE_${_name}})
    188         if (NOT _WEBKIT_AVAILABLE_OPTIONS_IS_PUBLIC_${_name})
    189             mark_as_advanced(FORCE ${_name})
    190190        endif ()
    191191
Note: See TracChangeset for help on using the changeset viewer.