]> git.lyx.org Git - lyx.git/commitdiff
Fix warnings in DTL targets on Windows (use STDC)
authorEugene Chornyi <yu_jin@lyx.org>
Mon, 7 Sep 2020 19:27:37 +0000 (21:27 +0200)
committerEugene Chornyi <yu_jin@lyx.org>
Mon, 7 Sep 2020 19:27:37 +0000 (21:27 +0200)
3rdparty/dtl/CMakeLists.txt

index 999b8a20ba9fc01c1bc83f85f32a38346ecc398b..f757b26b17700b7a64e8b6e6b47e0f965e367dd9 100644 (file)
@@ -31,6 +31,9 @@ foreach(_t ${targets})
   add_executable(${_t} ${_t}.c)
   add_man(${_t}.man)
 endforeach()
+if (WIN32)
+  set_target_properties(${targets} PROPERTIES LANGUAGE C COMPILE_FLAGS -D__STDC__)
+endif()
 
 # Install dtl tools in this directory to omit possible packaging conflicts
 # if installing multiple lyx versions, each with own dtl executables