[CMake] Apple builds should use ICU_INCLUDE_DIRS
[WebKit-https.git] / Source / WTF / CMakeLists.txt
index f781272..9902ac8 100644 (file)
@@ -3,3 +3,9 @@ include(WebKitCommon)
 set_property(DIRECTORY . PROPERTY FOLDER "WTF")
 
 add_subdirectory(wtf)
+
+# Apple builds have the ICU headers checked into ${WTF_DIR}/icu
+# Copy them into ${ICU_INCLUDE_DIRS} so the build behaves like find_package was used
+if (APPLE)
+    file(COPY ${WTF_DIR}/icu/unicode DESTINATION ${ICU_INCLUDE_DIRS})
+endif ()