Skip to content

Commit

Permalink
Fix Duktape library not found
Browse files Browse the repository at this point in the history
  • Loading branch information
tindy2013 committed Sep 19, 2020
1 parent 1fa2883 commit ab4d754
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ TARGET_LINK_LIBRARIES(subconverter ${YAML_CPP_LIBRARY})
ADD_DEFINITIONS(-DPCRE2_STATIC)
#ENDIF()

FIND_PACKAGE(DUKTAPE REQUIRED)
FIND_PACKAGE(Duktape REQUIRED)
INCLUDE_DIRECTORIES(${DUKTAPE_INCLUDE_DIRS})
TARGET_LINK_LIBRARIES(subconverter ${DUKTAPE_LIBRARIES})

Expand Down
2 changes: 1 addition & 1 deletion cmake/FindDuktape.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ find_library(DUKTAPE_MODULE_LIBRARY duktape_module)
set(DUKTAPE_LIBRARIES "${DUKTAPE_LIBRARY}" "${DUKTAPE_MODULE_LIBRARY}")

include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(DUKTAPE DEFAULT_MSG
find_package_handle_standard_args(Duktape DEFAULT_MSG
DUKTAPE_INCLUDE_DIRS DUKTAPE_LIBRARY DUKTAPE_MODULE_LIBRARY)

mark_as_advanced(DUKTAPE_INCLUDE_DIRS DUKTAPE_LIBRARY DUKTAPE_MODULE_LIBRARY)

0 comments on commit ab4d754

Please sign in to comment.