mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-27 11:36:44 +08:00
10 lines
564 B
CMake
10 lines
564 B
CMake
|
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)
|
||
|
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}")
|
||
|
endforeach()
|
||
|
endfunction()
|