[EFL][CMAKE] Build break after r149259
authorryuan.choi@samsung.com <ryuan.choi@samsung.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 29 Apr 2013 04:13:56 +0000 (04:13 +0000)
committerryuan.choi@samsung.com <ryuan.choi@samsung.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 29 Apr 2013 04:13:56 +0000 (04:13 +0000)
https://bugs.webkit.org/show_bug.cgi?id=115339

Reviewed by Gyuyoung Kim.

r149259 used c++11 features(Right angle bracket, Range-based for-loop).
This patch enforces c++0x when cmake based ports build WebKit2 using gcc.

* Source/cmake/WebKitHelpers.cmake:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@149266 268f45cc-cd09-0410-ab3c-d52691b4dbfc

ChangeLog
Source/cmake/WebKitHelpers.cmake

index 491eeba..dd436a3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,15 @@
+2013-04-28  Ryuan Choi  <ryuan.choi@samsung.com>
+
+        [EFL][CMAKE] Build break after r149259
+        https://bugs.webkit.org/show_bug.cgi?id=115339
+
+        Reviewed by Gyuyoung Kim.
+
+        r149259 used c++11 features(Right angle bracket, Range-based for-loop).
+        This patch enforces c++0x when cmake based ports build WebKit2 using gcc.
+
+        * Source/cmake/WebKitHelpers.cmake:
+
 2013-04-22  Benjamin Poulain  <benjamin@webkit.org>
 
         Remove the memory instrumentation code
index 1e51ebc..488e114 100644 (file)
@@ -51,6 +51,10 @@ macro(WEBKIT_SET_EXTRA_COMPILER_FLAGS _target)
             set(OLD_COMPILE_FLAGS "${OLD_COMPILE_FLAGS} -Wno-c++0x-compat")
         endif ()
 
+        if ("${_target}" MATCHES "${WebKit2_LIBRARY_NAME}")
+            set(OLD_COMPILE_FLAGS "${OLD_COMPILE_FLAGS} -std=c++0x")
+        endif ()
+
         set_target_properties(${_target} PROPERTIES
             COMPILE_FLAGS "${OLD_COMPILE_FLAGS}")