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:
Henrik Fehlauer 2017-09-13 23:27:39 +02:00
parent 127ce16b78
commit fcc08449b1

View file

@ -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