Reviewed by Antonio Gomes.
[CMAKE] Add exception handling when PORT was missing.
https://bugs.webkit.org/show_bug.cgi?id=56728
* Source/CMakeLists.txt:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@81638
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2011-03-21 Ryuan Choi <ryuan.choi@samsung.com>
+
+ Reviewed by Antonio Gomes.
+
+ [CMAKE] Add exception handling when PORT was missing.
+ https://bugs.webkit.org/show_bug.cgi?id=56728
+
+ * Source/CMakeLists.txt:
+
2011-03-10 Viatcheslav Ostapenko <ostapenko.viatcheslav@nokia.com>
Reviewed by Laszlo Gombos.
# -----------------------------------------------------------------------------
# Determine which port will be built
# -----------------------------------------------------------------------------
-SET(ALL_PORTS Efl)
-OPTION(PORT "choose which WebKit port to build (one of ${ALL_PORTS})" "NOPORT")
+SET(ALL_PORTS Efl WinCE)
+SET(PORT "NOPORT" CACHE STRING "choose which WebKit port to build (one of ${ALL_PORTS})")
+
+LIST(FIND ALL_PORTS ${PORT} RET)
+IF (${RET} EQUAL -1)
+ MESSAGE(FATAL_ERROR "Please choose which WebKit port to build (one of ${ALL_PORTS})")
+ENDIF ()
# -----------------------------------------------------------------------------
# Find common packages (used by all ports)