]> git.lyx.org Git - lyx.git/blobdiff - src/support/tests/CMakeLists.txt
Cmake build: Added magic library to some link commands.
[lyx.git] / src / support / tests / CMakeLists.txt
index 7c4600f1705b3248394f6062c0d7049698abb146..ed4f9bb25d9c5aa2578372c7e3a56811b9ddd452 100644 (file)
@@ -6,8 +6,6 @@
 
 project(supporttest)
 
-set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${LYX_CXX_SPECIFIC_FLAGS}")
-
 macro(sources _program)
        set(_tmplist)
        foreach(_tmp ${ARGN})
@@ -17,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})