Skip to content

Commit

Permalink
Solve the error when run js-tests on linux.
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangbin committed Apr 23, 2015
1 parent 61cf0ad commit b423072
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,11 @@ endif(BUILD_LUA_LIBS)

## JS
if(BUILD_JS_LIBS)
add_subdirectory(cocos/scripting/js-bindings)
link_directories(
${CMAKE_CURRENT_SOURCE_DIR}/external/spidermonkey/prebuilt/${PLATFORM_FOLDER}/${ARCH_DIR}
)

add_subdirectory(cocos/scripting/js-bindings)

# build js tests
if(BUILD_JS_TESTS)
Expand Down

0 comments on commit b423072

Please sign in to comment.