From ab4d7543cec46cd9e45680f3b43d82de16f38a3d Mon Sep 17 00:00:00 2001 From: Tindy X <49061470+tindy2013@users.noreply.github.com> Date: Sun, 20 Sep 2020 01:06:01 +0800 Subject: [PATCH] Fix Duktape library not found --- CMakeLists.txt | 2 +- cmake/FindDuktape.cmake | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 205d5228c..9b90abb3f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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}) diff --git a/cmake/FindDuktape.cmake b/cmake/FindDuktape.cmake index b28df76a2..c1db24dae 100644 --- a/cmake/FindDuktape.cmake +++ b/cmake/FindDuktape.cmake @@ -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)