mirror of
https://invent.kde.org/graphics/okular
synced 2024-10-02 14:14:10 +00:00
Fix building synctex 1.19 on Windows
Summary: The massive changes to the synctex code in D7594 pulled in a new library (on windows only), reflect that in the linker flags. Test Plan: `craft okular` on Okular's master branch builds successfully with MSVC 2017 and Qt 5.9, build on Linux still fine. Reviewers: #okular, aacid Reviewed By: #okular, aacid Tags: #okular Differential Revision: https://phabricator.kde.org/D7809
This commit is contained in:
parent
127ce16b78
commit
fcc08449b1
|
@ -207,9 +207,15 @@ IF(APPLE)
|
|||
SET(OKULAR_IOKIT "-framework IOKit" CACHE STRING "Apple IOKit framework")
|
||||
ENDIF(APPLE)
|
||||
|
||||
# Extra library needed by imported synctex code on Windows
|
||||
if(WIN32)
|
||||
set(SHLWAPI shlwapi)
|
||||
endif(WIN32)
|
||||
|
||||
target_link_libraries(okularcore
|
||||
PRIVATE
|
||||
${OKULAR_IOKIT}
|
||||
${SHLWAPI}
|
||||
KF5::Archive
|
||||
KF5::JS
|
||||
KF5::JSApi
|
||||
|
|
Loading…
Reference in a new issue