mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-28 19:25:27 +08:00
fix some remaining absolute paths. (#10746)
This commit is contained in:
parent
a3a6e70344
commit
919856ad45
@ -1,5 +1,5 @@
|
||||
Source: qt5-base
|
||||
Version: 5.12.5-12
|
||||
Version: 5.12.5-13
|
||||
Homepage: https://www.qt.io/
|
||||
Description: Qt5 Application Framework Base Module. Includes Core, GUI, Widgets, Networking, SQL, Concurrent and other essential qt components.
|
||||
Build-Depends: zlib, libjpeg-turbo, libpng, freetype, pcre2, harfbuzz, sqlite3, libpq, double-conversion, openssl, angle (!windows), egl-registry, icu (!uwp), fontconfig (!windows)
|
||||
|
@ -1,10 +1,13 @@
|
||||
function(qt_fix_prl PACKAGE_DIR PRL_FILES)
|
||||
file(TO_CMAKE_PATH "${PACKAGE_DIR}/lib" CMAKE_LIB_PATH)
|
||||
file(TO_CMAKE_PATH "${PACKAGE_DIR}/include" CMAKE_INCLUDE_PATH)
|
||||
file(TO_CMAKE_PATH "${CURRENT_INSTALLED_DIR}" CMAKE_INSTALLED_PREFIX)
|
||||
foreach(PRL_FILE IN LISTS PRL_FILES)
|
||||
file(READ "${PRL_FILE}" _contents)
|
||||
string(REPLACE "${CMAKE_LIB_PATH}" "\$\$[QT_INSTALL_LIBS]" _contents "${_contents}")
|
||||
string(REPLACE "${CMAKE_INCLUDE_PATH}" "\$\$[QT_INSTALL_HEADERS]" _contents "${_contents}")
|
||||
file(WRITE "${PRL_FILE}" "${_contents}")
|
||||
string(REPLACE "${CMAKE_INSTALLED_PREFIX}" "\$\$[QT_INSTALL_PREFIX]" _contents "${_contents}")
|
||||
#Note: This only works without an extra if case since QT_INSTALL_PREFIX is the same for debug and release
|
||||
file(WRITE "${PRL_FILE}" "${_contents}")
|
||||
endforeach()
|
||||
endfunction()
|
Loading…
x
Reference in New Issue
Block a user