]> git.lyx.org Git - features.git/blobdiff - CMakeLists.txt
std::min/max are defined in <algorithm>
[features.git] / CMakeLists.txt
index 48bf5400370403f0ed79039ba750f2eda7243fdf..5e403abc27e8bc8efdbe4fec86d2cdcbcccf3923 100644 (file)
@@ -205,6 +205,10 @@ if(LYX_DEPENDENCIES_DOWNLOAD)
                endif()
        endforeach()
        set(GNUWIN32_DIR ${LYX_DEPENDENCIES_DIR}/deps20)
+    if(MSVC12)
+        # handle error in msvc12 when linking against msvc10 libs
+        set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /vd2")
+    endif()
 endif()