aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Karatarakis <alex@karatarakis.com>2018-06-29 20:11:46 -0700
committerGitHub <noreply@github.com>2018-06-29 20:11:46 -0700
commit2f5289c557a79fd687daed9a32accc5166a2c751 (patch)
tree26ec7eb10c4bc1e1cdac3178d8a238da1b5e92de
parente524ada9f4f412f194686ae00db5b8da5735667d (diff)
parenteb46cb588573d063d01f2c031e9a367a90bc05b6 (diff)
downloadvcpkg-2f5289c557a79fd687daed9a32accc5166a2c751.tar.gz
vcpkg-2f5289c557a79fd687daed9a32accc5166a2c751.zip
Merge pull request #3454 from planaria/duktape
[duktape] Fix static linking (#3450)
-rw-r--r--ports/duktape/portfile.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/ports/duktape/portfile.cmake b/ports/duktape/portfile.cmake
index e3e84c0de..f4aa4f805 100644
--- a/ports/duktape/portfile.cmake
+++ b/ports/duktape/portfile.cmake
@@ -23,9 +23,9 @@ vcpkg_install_cmake()
set(DUK_CONFIG_H_PATH "${CURRENT_PACKAGES_DIR}/include/duk_config.h")
file(READ ${DUK_CONFIG_H_PATH} CONTENT)
if(VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
- string(REPLACE "// #undef DUK_F_DLL_BUILD" "#undef DUK_F_DLL_BUILD\n#define DUK_F_DLL_BUILD 1" CONTENT "${CONTENT}")
+ string(REPLACE "// #undef DUK_F_DLL_BUILD" "#undef DUK_F_DLL_BUILD\n#define DUK_F_DLL_BUILD" CONTENT "${CONTENT}")
else()
- string(REPLACE "// #undef DUK_F_DLL_BUILD" "#undef DUK_F_DLL_BUILD\n#define DUK_F_DLL_BUILD 0" CONTENT "${CONTENT}")
+ string(REPLACE "// #undef DUK_F_DLL_BUILD" "#undef DUK_F_DLL_BUILD" CONTENT "${CONTENT}")
endif()
file(WRITE ${DUK_CONFIG_H_PATH} "${CONTENT}")