Changeset 95986 in webkit


Ignore:
Timestamp:
Sep 26, 2011 1:08:57 PM (13 years ago)
Author:
commit-queue@webkit.org
Message:

[CMake] Detect the operating system in a more generic way.
https://bugs.webkit.org/show_bug.cgi?id=67482

Patch by Raphael Kubo da Costa <kubo@profusion.mobi> on 2011-09-26
Reviewed by Adam Barth.

So far the buildsystem only considered Windows, Linux and Mac OS X as
valid operating systems, but any Unix (or at least the BSDs) should also
work fine.

By using the OS values CMake itself defines we can check for Unix
systems in a more generic fashion.

  • Source/CMakeLists.txt:
Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ChangeLog

    r95958 r95986  
     12011-09-26  Raphael Kubo da Costa  <kubo@profusion.mobi>
     2
     3        [CMake] Detect the operating system in a more generic way.
     4        https://bugs.webkit.org/show_bug.cgi?id=67482
     5
     6        Reviewed by Adam Barth.
     7
     8        So far the buildsystem only considered Windows, Linux and Mac OS X as
     9        valid operating systems, but any Unix (or at least the BSDs) should also
     10        work fine.
     11
     12        By using the OS values CMake itself defines we can check for Unix
     13        systems in a more generic fashion.
     14
     15        * Source/CMakeLists.txt:
     16
    1172011-09-26  Jay Soffian  <jaysoffian@gmail.com>
    218
  • trunk/Source/CMakeLists.txt

    r95896 r95986  
    7474# Determine the operating system
    7575# -----------------------------------------------------------------------------
    76 IF (CMAKE_SYSTEM_NAME MATCHES "Linux")
    77     SET(WTF_OS_UNIX 1)
    78 
     76IF (UNIX)
    7977    IF (APPLE)
    8078        SET(WTF_OS_MAC_OS_X 1)
     79    ELSE ()
     80        SET(WTF_OS_UNIX 1)
    8181    ENDIF ()
    8282ELSEIF (CMAKE_SYSTEM_NAME MATCHES "Windows")
Note: See TracChangeset for help on using the changeset viewer.