From 6fac3144d585ad8bfa34c214e3a6db855ec99f68 Mon Sep 17 00:00:00 2001 From: Eugene Chornyi Date: Mon, 7 Sep 2020 21:27:37 +0200 Subject: [PATCH] Fix warnings in DTL targets on Windows (use STDC) --- 3rdparty/dtl/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/3rdparty/dtl/CMakeLists.txt b/3rdparty/dtl/CMakeLists.txt index 999b8a20ba..f757b26b17 100644 --- a/3rdparty/dtl/CMakeLists.txt +++ b/3rdparty/dtl/CMakeLists.txt @@ -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