]> git.lyx.org Git - lyx.git/blobdiff - 3rdparty/dtl/CMakeLists.txt
inputenc only expects one option
[lyx.git] / 3rdparty / dtl / CMakeLists.txt
index 8b49bf476f05c1c6142f5982b19d8ef012f73a92..f757b26b17700b7a64e8b6e6b47e0f965e367dd9 100644 (file)
@@ -31,6 +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(TARGETS ${targets} DESTINATION ${LYX_UTILITIES_INSTALL_PATH})
-install(FILES ${_manuals} DESTINATION ${LYX_MAN_DIR}/man1)
+# 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 "${dest_data}extraman/man1/")