mirror of
https://github.com/cemu-project/vcpkg.git
synced 2024-11-27 21:20:21 +00:00
[duktape] Fix static linking (#3450)
This commit is contained in:
parent
90ecc3c44d
commit
eb46cb5885
@ -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}")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user