2011-02-06 Patrick Gansterer <paroga@webkit.org>
[WebKit-https.git] / Source / WebKit / CMakeLists.txt
index 5de532dd19a6c15d5453e6e83019c8590b0a3e76..db0650a4781f056a39542cd1b96a49127b4d7713 100644 (file)
@@ -57,7 +57,6 @@ IF (WTF_USE_CURL)
 ENDIF ()
 
 SET(WebKit_LIBRARIES
-    ${JavaScriptCore_LIBRARY_NAME}
     ${WebCore_LIBRARY_NAME}
 )
 
@@ -67,6 +66,7 @@ INCLUDE_IF_EXISTS(${WEBKIT_DIR}/${WEBKIT_PORT_DIR}/CMakeLists${PORT}.txt)
 ADD_DEFINITIONS(-DBUILDING_WebKit)
 INCLUDE_DIRECTORIES(${WebKit_INCLUDE_DIRECTORIES})
 ADD_LIBRARY(${WebKit_LIBRARY_NAME} ${WebKit_LIBRARY_TYPE} ${WebKit_SOURCES})
+ADD_DEPENDENCIES(${WebKit_LIBRARY_NAME} ${WebCore_LIBRARY_NAME})
 TARGET_LINK_LIBRARIES(${WebKit_LIBRARY_NAME} ${WebKit_LIBRARIES})
 
 IF (WebKit_LINK_FLAGS)