Fix Windows EWS build after r189934.
[WebKit-https.git] / Source / cmake / OptionsWin.cmake
index 11f94b01a5fbc5e2e7a40da54de8b1afd6cfa3f8..3ccc7fe3126e10469e315ccdbb4692236099b583 100644 (file)
@@ -108,7 +108,11 @@ endif ()
 WEBKIT_OPTION_END()
 
 if (NOT WEBKIT_LIBRARIES_DIR)
-    set(WEBKIT_LIBRARIES_DIR "${CMAKE_SOURCE_DIR}/WebKitLibraries/win")
+    if (DEFINED ENV{WEBKIT_LIBRARIES})
+        set(WEBKIT_LIBRARIES_DIR "$ENV{WEBKIT_LIBRARIES}")
+    else ()
+        set(WEBKIT_LIBRARIES_DIR "${CMAKE_SOURCE_DIR}/WebKitLibraries/win")
+    endif ()
 endif ()
 
 include_directories("${WEBKIT_LIBRARIES_DIR}/include")