]> git.lyx.org Git - lyx.git/blobdiff - 3rdparty/dtl/CMakeLists.txt
Fix a crash when closing tabs
[lyx.git] / 3rdparty / dtl / CMakeLists.txt
index 58354958e9edf1cc77db484c16b70aab217c0768..f757b26b17700b7a64e8b6e6b47e0f965e367dd9 100644 (file)
@@ -31,9 +31,12 @@ 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
 get_data_destination(dest_data)
-install(TARGETS ${targets} DESTINATION "${dest_data}/extratools")
-install(FILES ${_manuals} DESTINATION ${LYX_MAN_DIR}/man1)
+install(TARGETS ${targets} DESTINATION "${dest_data}extratools/")
+install(FILES ${_manuals} DESTINATION "${dest_data}extraman/man1/")