Unreviewed build fix on CMake based ports when CMAKE_BUILD_TYPE is not given.
authorryuan.choi@samsung.com <ryuan.choi@samsung.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 24 Oct 2013 04:16:03 +0000 (04:16 +0000)
committerryuan.choi@samsung.com <ryuan.choi@samsung.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 24 Oct 2013 04:16:03 +0000 (04:16 +0000)
When CMAKE_BUILD_TYPE is empty, FIND command will be failed.

* CMakeLists.txt:

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

Source/WebCore/CMakeLists.txt
Source/WebCore/ChangeLog

index 46d12e3..c9d5444 100644 (file)
@@ -2530,7 +2530,7 @@ set(WebCore_SOURCES
 if (CMAKE_COMPILER_IS_GNUCXX) # Can restrict based on the version.
     string(TOUPPER "CMAKE_CXX_FLAGS_${CMAKE_BUILD_TYPE}" _CXXFLAGS_VARNAME)
 
-    string(FIND ${${_CXXFLAGS_VARNAME}} "-O3" _CXXFLAGS_O3_INDEX)
+    string(FIND "${${_CXXFLAGS_VARNAME}}" "-O3" _CXXFLAGS_O3_INDEX)
     if (_CXXFLAGS_O3_INDEX GREATER -1)
         string(REPLACE "-O3" "-O2" _CXXFLAGS ${${_CXXFLAGS_VARNAME}})
         set_source_files_properties(Modules/websockets/WebSocketDeflater.cpp
index 4b35f19..9218269 100644 (file)
@@ -1,3 +1,11 @@
+2013-10-23  Ryuan Choi  <ryuan.choi@samsung.com>
+
+        Unreviewed build fix on CMake based ports when CMAKE_BUILD_TYPE is not given.
+
+        When CMAKE_BUILD_TYPE is empty, FIND command will be failed.
+
+        * CMakeLists.txt:
+
 2013-10-23  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
 
         Integrate css3-images image-orientation with existing EXIF support