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:
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@95986
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2011-09-26 Raphael Kubo da Costa <kubo@profusion.mobi>
+
+ [CMake] Detect the operating system in a more generic way.
+ https://bugs.webkit.org/show_bug.cgi?id=67482
+
+ 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:
+
2011-09-26 Jay Soffian <jaysoffian@gmail.com>
chrome.dll!WebCore::ApplyStyleCommand::applyBlockStyle ReadAV@NULL (64db547804532a84be2e53721e499e9e)
# -----------------------------------------------------------------------------
# Determine the operating system
# -----------------------------------------------------------------------------
-IF (CMAKE_SYSTEM_NAME MATCHES "Linux")
- SET(WTF_OS_UNIX 1)
-
+IF (UNIX)
IF (APPLE)
SET(WTF_OS_MAC_OS_X 1)
+ ELSE ()
+ SET(WTF_OS_UNIX 1)
ENDIF ()
ELSEIF (CMAKE_SYSTEM_NAME MATCHES "Windows")
SET(WTF_OS_WINDOWS 1)