]> git.lyx.org Git - lyx.git/blobdiff - src/tex2lyx/CMakeLists.txt
Correct early return position for if use_pixmap_cache_ check
[lyx.git] / src / tex2lyx / CMakeLists.txt
index ed827bbc642ea79610864868b2c76a078fee9063..09bcc2bf3625dc2d6ede7c32b6a34b80598b6410 100644 (file)
@@ -48,8 +48,9 @@ target_link_libraries(${_tex2lyx}
        ${Lyx_Boost_Libraries}
        ${QT_QTCORE_LIBRARY}
        ${QT_QTGUI_LIBRARY}
-       ${ICONV_LIBRARY}
-        ${Magic_LIBRARY})
+       ${ICONV_LIBRARY})
+
+lyx_target_link_libraries(${_tex2lyx} Magic)
 
 add_dependencies(${_tex2lyx} lyx_version)
 
@@ -57,6 +58,10 @@ if(WIN32)
        target_link_libraries(${_tex2lyx} shlwapi ole32 psapi)
 endif()
 
+if(CYGWIN)
+       target_link_libraries(${_tex2lyx} shlwapi ole32)
+endif()
+
 if(APPLE)
        target_link_libraries(${_tex2lyx} "-framework AppKit")
 endif()