Changeset 166501 in webkit


Ignore:
Timestamp:
Mar 31, 2014 7:44:32 AM (10 years ago)
Author:
rakuco@webkit.org
Message:

[CMake][GTK] Do not expand variables twice in if() checks.
https://bugs.webkit.org/show_bug.cgi?id=130964

Reviewed by Martin Robinson.

In CMake, `if (${foo})' causes $foo to be evaluated first and its value
to be checked by the if clause. This is not what we want, and
configuration fails when, say, GLX support wasn't found as the if
clause is actually evaluated as `if (TRUE AND (OR TRUE))'.

  • Source/cmake/OptionsGTK.cmake: Pass if (FOO) instead of if (${FOO})

where necessary.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ChangeLog

    r166500 r166501  
     12014-03-31  Raphael Kubo da Costa  <raphael.kubo.da.costa@intel.com>
     2
     3        [CMake][GTK] Do not expand variables twice in if() checks.
     4        https://bugs.webkit.org/show_bug.cgi?id=130964
     5
     6        Reviewed by Martin Robinson.
     7
     8        In CMake, `if (${foo})' causes $foo to be evaluated first and its value
     9        to be checked by the if clause. This is not what we want, and
     10        configuration fails when, say, GLX support wasn't found as the if
     11        clause is actually evaluated as `if (TRUE AND (OR TRUE))'.
     12
     13        * Source/cmake/OptionsGTK.cmake: Pass if (FOO) instead of if (${FOO})
     14        where necessary.
     15
    1162014-03-31  Martin Robinson  <mrobinson@igalia.com>
    217
  • trunk/Source/cmake/OptionsGTK.cmake

    r166499 r166501  
    236236endif ()
    237237
    238 if (${OPENGL_FOUND} AND (${GLX_FOUND} OR ${EGL_FOUND}))
     238if (OPENGL_FOUND AND (GLX_FOUND OR EGL_FOUND))
    239239    set(ENABLE_WEBGL 1)
    240240    set(ENABLE_TEXTURE_MAPPER 1)
     
    248248    add_definitions(-DENABLE_3D_RENDERING=1)
    249249
    250     if (${EGL_FOUND})
     250    if (EGL_FOUND)
    251251        add_definitions(-DWTF_USE_EGL=1)
    252252    endif ()
    253253
    254     if (${GLX_FOUND})
     254    if (GLX_FOUND)
    255255        add_definitions(-DWTF_USE_GLX=1)
    256256    endif ()
Note: See TracChangeset for help on using the changeset viewer.