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