Fix warnings in DTL targets on Windows (use STDC)

This commit is contained in:
Eugene Chornyi 2020-09-07 21:27:37 +02:00
parent aadfb58374
commit 6fac3144d5

View 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