mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
Cmake build: Added magic library to some link commands.
Needed due to the use of magic_(open|load|error|file|close) after recent changes.
This commit is contained in:
parent
f439609304
commit
2b0511510a
@ -30,7 +30,8 @@ target_link_libraries(${_lyxclient}
|
||||
${Lyx_Boost_Libraries}
|
||||
${ICONV_LIBRARY}
|
||||
${QT_QTCORE_LIBRARY}
|
||||
${QT_QTGUI_LIBRARY})
|
||||
${QT_QTGUI_LIBRARY}
|
||||
${Magic_LIBRARY})
|
||||
|
||||
if(ASPELL_FOUND)
|
||||
target_link_libraries(${_lyxclient} ${ASPELL_LIBRARY})
|
||||
|
@ -15,7 +15,7 @@ macro(sources _program)
|
||||
add_executable(${_program} ${_tmplist})
|
||||
target_link_libraries(${_program} support
|
||||
${Lyx_Boost_Libraries} ${QT_QTGUI_LIBRARY} ${QT_QTCORE_LIBRARY}
|
||||
${ZLIB_LIBRARY} ${ICONV_LIBRARY})
|
||||
${ZLIB_LIBRARY} ${ICONV_LIBRARY} ${Magic_LIBRARY})
|
||||
endmacro()
|
||||
|
||||
file(GLOB test_sources ${TOP_SRC_DIR}/src/support/tests/${LYX_CPP_FILES})
|
||||
|
@ -18,7 +18,7 @@ add_executable(check_layout ${check_layout_SOURCES})
|
||||
|
||||
target_link_libraries(check_layout support
|
||||
${Lyx_Boost_Libraries} ${QT_QTGUI_LIBRARY} ${QT_QTCORE_LIBRARY}
|
||||
${ZLIB_LIBRARY} ${ICONV_LIBRARY})
|
||||
${ZLIB_LIBRARY} ${ICONV_LIBRARY} ${Magic_LIBRARY})
|
||||
|
||||
add_dependencies(lyx_run_tests check_layout)
|
||||
set_target_properties(check_layout PROPERTIES FOLDER "tests/src")
|
||||
|
@ -48,7 +48,8 @@ target_link_libraries(${_tex2lyx}
|
||||
${Lyx_Boost_Libraries}
|
||||
${QT_QTCORE_LIBRARY}
|
||||
${QT_QTGUI_LIBRARY}
|
||||
${ICONV_LIBRARY})
|
||||
${ICONV_LIBRARY}
|
||||
${Magic_LIBRARY})
|
||||
|
||||
add_dependencies(${_tex2lyx} lyx_version)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user